-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transform sometimes fails to map GA to file name if version and Jar file name do not align #129
Comments
Another instance of this I just wanted to report is, if other transforms run before the See also gradle/gradle#29833 |
So yeah, if it is not a technical necessity that the filename matches the expectation, it would be great if this restriction is lifted. |
Thanks for sharing the case of multiple transforms running after each other. I never gave that much thought in the context of this plugin. Unfortunately, it is necessary to look at the file names/paths – at least partially. For the transform input, we only know the file name. But we would like to know the To determine the It is a missing Gradle feature: gradle/gradle#11831 I thought about passing additional inputs to the transform which somehow contain this information. For the |
Urgh, not only super hacky, also super flaky.
|
I don't see how it is flaky. Even if transformations are chained, they run in deterministic order. It may break then, but it will break consistency. You can always use the file name as identifier if it is not working. Of course that is not very nice usability, but it probably affects almost no users in practice The issue from the description is fixed. Here is a follow up to potentially change the whole approach in the future, but as of now, I don't see a way to do that: #145 |
This can happen e.g. with Guava, where the version can be
32.1.3-android
but the Jar name is32.1.3-jre
.Scan: https://scans.gradle.com/s/xo55e6547gqcq
This does not always happen. So it most likely depends on whether the Jar is taken from
.gradle
cache or.m2
cache.The text was updated successfully, but these errors were encountered: