-
Notifications
You must be signed in to change notification settings - Fork 319
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
fix: profile for jdk17 compiler arguments #1775
fix: profile for jdk17 compiler arguments #1775
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Shouldn’t each
|
@breun : https://errorprone.info/docs/flags in the Maven section at the bottom shows one line. Splitting into multiples like you suggest was how the first commit of this PR attempted to do it, but this resulted in a build failure so I went with one line. |
I see the ErrorProne docs indeed say "The flags must be appended to the arg entry containing |
Just curious, why |
It was causing a compiler exception. This commit 3916323 is when it was removed in this PR. Looking at the builds in the prior commit https://github.com/GoogleCloudPlatform/spring-cloud-gcp/actions/runs/4821699659/jobs/8587923313 shows what that looked like. Running locally produces:
And perhaps most importantly: this setting is disabling a check that doesn't cause a failure when it's enabled. |
JDK17 profile was not correctly applying the configuration due to an invalid artifactId.
On fixing the artifactId, the multi-line argument was causing javac to throw an exception, so these arguments have been
split into dedicated<arg>
entries...reverted to the single-line argument it was prior to the introduction of the profile error.
mvn compile -X
now shows: