Skip to content
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

Update Error Prone to 2.32.0 and only run it on JDK 17+. #369

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link
Contributor

@copybara-service copybara-service bot commented Sep 24, 2024

Update Error Prone to 2.32.0 and only run it on JDK 17+.

Error Prone was actually not running on JDK 17+ at all due to profile activation only looking at the first of the JDK version ranges apparently. I don't know if that's a bug, but it seemed to be a valid version range specification according to https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html.

The -J flags were also not actually being passed to the compiler, but that wasn't required on JDK 11, so nothing appeared to be broken. fork needs to be set to true to pass the -J flags. See
https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#compilerArgs:

Note that -J options are only passed through if fork is set to true.

RELNOTES=n/a

@copybara-service copybara-service bot force-pushed the test_678295410 branch 8 times, most recently from 648a21e to 0efc210 Compare September 24, 2024 22:00
@copybara-service copybara-service bot changed the title Update error prone dependency to 2.32.0 and only run it on JDK 17+. Update Error Prone to 2.32.0 and only run it on JDK 17+. Sep 24, 2024
@copybara-service copybara-service bot force-pushed the test_678295410 branch 3 times, most recently from 4d4f741 to b6d4c6d Compare September 24, 2024 22:24
@copybara-service copybara-service bot closed this Sep 24, 2024
@copybara-service copybara-service bot deleted the test_678295410 branch September 24, 2024 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants