-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Upgrade ASM and Error Prone #2351
Conversation
Thanks for the contribution. 2 things:
|
@chanseokoh thanks for the pointers. I will update PR |
Oh, and seems like Error Prone has issues with Java 12+. Unclear if they are all fixed. |
Yeah, unfortunately, looks like we cannot add 12+ builds until they support them. |
Nothing is fixed. I am struggling for 2 years now to submit pull requests that are ignored by error_prone developers, see google/error-prone#1106 For JOSM we apply around 5/6 patches to make it work with recent versions of Java. |
@chanseokoh gradle 5.x only works for 12- this morphed into something else. Travis build is green @don-vip maybe time to look for another tool ... |
@gliptak for now we manage to update the tool with the patches. Maybe one day we'll drop it if Google continues to ignore recent Java. Are you working at Google, or just using their tools? |
@don-vip just run into this while trying to bump |
@don-vip maybe try the mailing list? https://groups.google.com/g/error-prone-discuss @loosebazooka are we okay to upgrade Gradle, or it's safer to stick to the current 5.2.1 to prevent accidental API usage? |
I mean I would like to stick to |
@chanseokoh I'm not following the "accidental API usage" concern @loosebazooka the Gradle upgrade was in preparation for adding current JDKs |
We try to stay on as low a gradle version as possible so we don't use API from newer versions of gradle -- If So staying at |
Isn't the point of https://docs.gradle.org/current/userguide/gradle_wrapper.html that the pinned Gradle version is used (and automagically downloaded if needed) regardless of what Gradle (if any) is already installed by the user? |
Ah so I think you're misunderstanding here. When building a gradle plugin you build with some version of the gradle api (in jib's case 5.2.1), however the gradle API is a provided dependency as is not packaged with the project, it's whatever is available at runtime -- so as long as user who has Pinning the version on the jib build creates no inherent restrictions on the version of gradle the user uses to build their project except for API compatibility and the code we have here: https://github.com/GoogleContainerTools/jib/blob/master/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/JibPlugin.java#L85 So if the user needs 5.6.2 to build java 12 or 13, that's fine, we may not need to make this build use 5.6.2 unless jib introduces some explicit support for java 12 or 13 via code that uses references to features in gradle 5.6.2. |
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
@loosebazooka thank you for the explanation. Remove Gradle bump from PR |
@gliptak thanks for checking these! Merging. |
No description provided.