-
Notifications
You must be signed in to change notification settings - Fork 39
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 maven-compiler-plugin 3.10.1 -> 3.12.1 #515
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,15 +206,9 @@ | |
<version.error-prone>${version.error-prone-orig}</version.error-prone> | ||
<version.error-prone-fork>v${version.error-prone-orig}-picnic-1</version.error-prone-fork> | ||
<version.error-prone-orig>2.24.0</version.error-prone-orig> | ||
<version.error-prone-slf4j>0.1.21</version.error-prone-slf4j> | ||
<version.guava-beta-checker>1.0</version.guava-beta-checker> | ||
<version.jdk>11</version.jdk> | ||
<version.maven>3.8.7</version.maven> | ||
<version.mockito>5.8.0</version.mockito> | ||
<version.nopen-checker>1.0.1</version.nopen-checker> | ||
<version.nullaway>0.10.18</version.nullaway> | ||
<version.pitest-git>1.1.4</version.pitest-git> | ||
<version.surefire>3.2.3</version.surefire> | ||
</properties> | ||
|
||
<dependencyManagement> | ||
|
@@ -249,6 +243,11 @@ | |
<artifactId>documentation-support</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>error-prone-contrib</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>refaster-compiler</artifactId> | ||
|
@@ -281,6 +280,11 @@ | |
<artifactId>auto-common</artifactId> | ||
<version>1.2.2</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.auto.service</groupId> | ||
<artifactId>auto-service</artifactId> | ||
<version>${version.auto-service}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.auto.service</groupId> | ||
<artifactId>auto-service-annotations</artifactId> | ||
|
@@ -301,12 +305,10 @@ | |
<artifactId>google-java-format</artifactId> | ||
<version>1.19.1</version> | ||
</dependency> | ||
<!-- Specified as a workaround for | ||
https://github.com/mojohaus/versions-maven-plugin/issues/244. --> | ||
<dependency> | ||
<groupId>com.google.guava</groupId> | ||
<artifactId>guava-beta-checker</artifactId> | ||
<version>${version.guava-beta-checker}</version> | ||
<version>1.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.guava</groupId> | ||
|
@@ -320,19 +322,15 @@ | |
<artifactId>truth</artifactId> | ||
<version>1.2.0</version> | ||
</dependency> | ||
<!-- Specified as a workaround for | ||
https://github.com/mojohaus/versions-maven-plugin/issues/244. --> | ||
<dependency> | ||
<groupId>com.jakewharton.nopen</groupId> | ||
<artifactId>nopen-checker</artifactId> | ||
<version>${version.nopen-checker}</version> | ||
<version>1.0.1</version> | ||
</dependency> | ||
<!-- Specified as a workaround for | ||
https://github.com/mojohaus/versions-maven-plugin/issues/244. --> | ||
<dependency> | ||
<groupId>com.uber.nullaway</groupId> | ||
<artifactId>nullaway</artifactId> | ||
<version>${version.nullaway}</version> | ||
<version>0.10.18</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.projectreactor</groupId> | ||
|
@@ -371,12 +369,10 @@ | |
<artifactId>jaxb-api</artifactId> | ||
<version>2.3.1</version> | ||
</dependency> | ||
<!-- Specified as a workaround for | ||
https://github.com/mojohaus/versions-maven-plugin/issues/244. --> | ||
<dependency> | ||
<groupId>jp.skypencil.errorprone.slf4j</groupId> | ||
<artifactId>errorprone-slf4j</artifactId> | ||
<version>${version.error-prone-slf4j}</version> | ||
<version>0.1.21</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
|
@@ -438,7 +434,7 @@ | |
<dependency> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-bom</artifactId> | ||
<version>${version.mockito}</version> | ||
<version>5.8.0</version> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
|
@@ -884,56 +880,16 @@ | |
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.10.1</version> | ||
<version>3.12.0</version> | ||
<configuration> | ||
<!-- XXX: MCOMPILER-503: The plugin constructs a highly | ||
unintuitive annotation processor classpath, in which | ||
some indirect dependencies take precedence over | ||
explicitly defined dependencies. This can largely be | ||
mitigated through careful ordering of the dependencies, | ||
but this prevents (where relevant) declaring these | ||
dependencies as part of their corresponding Maven | ||
profile. --> | ||
<annotationProcessorPaths> | ||
<path> | ||
<groupId>${groupId.error-prone}</groupId> | ||
<artifactId>error_prone_core</artifactId> | ||
<version>${version.error-prone}</version> | ||
</path> | ||
<path> | ||
<groupId>com.google.auto.value</groupId> | ||
<artifactId>auto-value</artifactId> | ||
<version>${version.auto-value}</version> | ||
</path> | ||
<path> | ||
<groupId>com.google.auto.service</groupId> | ||
<artifactId>auto-service</artifactId> | ||
<version>${version.auto-service}</version> | ||
</path> | ||
<path> | ||
<groupId>com.google.guava</groupId> | ||
<artifactId>guava-beta-checker</artifactId> | ||
<version>${version.guava-beta-checker}</version> | ||
</path> | ||
<path> | ||
<groupId>com.jakewharton.nopen</groupId> | ||
<artifactId>nopen-checker</artifactId> | ||
<version>${version.nopen-checker}</version> | ||
</path> | ||
<path> | ||
<groupId>com.uber.nullaway</groupId> | ||
<artifactId>nullaway</artifactId> | ||
<version>${version.nullaway}</version> | ||
</path> | ||
<path> | ||
<groupId>jp.skypencil.errorprone.slf4j</groupId> | ||
<artifactId>errorprone-slf4j</artifactId> | ||
<version>${version.error-prone-slf4j}</version> | ||
</path> | ||
<path> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-errorprone</artifactId> | ||
<version>${version.mockito}</version> | ||
</path> | ||
</annotationProcessorPaths> | ||
<compilerArgs> | ||
|
@@ -952,6 +908,7 @@ | |
<parameters>true</parameters> | ||
<source>${version.jdk}</source> | ||
<target>${version.jdk}</target> | ||
<showWarnings>false</showWarnings> | ||
<!-- Erroneously inverted logic... for details, see | ||
https://issues.apache.org/jira/browse/MCOMPILER-209. --> | ||
<useIncrementalCompilation>false</useIncrementalCompilation> | ||
|
@@ -1181,7 +1138,7 @@ | |
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>${version.surefire}</version> | ||
<version>3.2.3</version> | ||
<configuration> | ||
<includes> | ||
<include>**/*Test.java</include> | ||
|
@@ -1500,17 +1457,12 @@ | |
<!-- Error Prone checks that are not available from Maven Central; | ||
these are therefore not enabled by default. --> | ||
<id>non-maven-central</id> | ||
<properties> | ||
<version.reactor-error-prone>0.1.4</version.reactor-error-prone> | ||
</properties> | ||
<dependencyManagement> | ||
<!-- Specified as a workaround for | ||
https://github.com/mojohaus/versions-maven-plugin/issues/244. --> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.github.lhotari</groupId> | ||
<artifactId>reactor-error-prone</artifactId> | ||
<version>${version.reactor-error-prone}</version> | ||
<version>0.1.4</version> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
|
@@ -1524,7 +1476,6 @@ | |
<path> | ||
<groupId>com.github.lhotari</groupId> | ||
<artifactId>reactor-error-prone</artifactId> | ||
<version>${version.reactor-error-prone}</version> | ||
</path> | ||
</annotationProcessorPaths> | ||
</configuration> | ||
|
@@ -1557,12 +1508,10 @@ | |
<path> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>error-prone-contrib</artifactId> | ||
<version>${project.version}</version> | ||
</path> | ||
<path> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>refaster-runner</artifactId> | ||
<version>${project.version}</version> | ||
</path> | ||
</annotationProcessorPaths> | ||
</configuration> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IIUC we can now drop this one: https://github.com/PicnicSupermarket/error-prone-support/pull/515/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8R1596, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, that one counteracts the opposite config on line 911. This way warnings are disabled if |
||
|
@@ -1721,6 +1670,32 @@ | |
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<configuration> | ||
<annotationProcessorPaths combine.children="append"> | ||
<path> | ||
<groupId>${groupId.error-prone}</groupId> | ||
<artifactId>error_prone_core</artifactId> | ||
</path> | ||
<path> | ||
<groupId>com.google.guava</groupId> | ||
<artifactId>guava-beta-checker</artifactId> | ||
</path> | ||
<path> | ||
<groupId>com.jakewharton.nopen</groupId> | ||
<artifactId>nopen-checker</artifactId> | ||
</path> | ||
<path> | ||
<groupId>com.uber.nullaway</groupId> | ||
<artifactId>nullaway</artifactId> | ||
</path> | ||
<path> | ||
<groupId>jp.skypencil.errorprone.slf4j</groupId> | ||
<artifactId>errorprone-slf4j</artifactId> | ||
</path> | ||
<path> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-errorprone</artifactId> | ||
</path> | ||
</annotationProcessorPaths> | ||
<compilerArgs combine.children="append"> | ||
<!-- Enable and configure Error Prone. --> | ||
<arg> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, we can archive this one: https://github.com/PicnicSupermarket/maven-compiler-plugin-issue-503
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good once; done. ✔️