Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plexus-compiler-its/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<properties>
<junit.version>4.13.2</junit.version>
<javaVersion>17</javaVersion>
<javaVersion>21</javaVersion>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<fork>true</fork>
<compilerArgs>
<arg>-XDcompilePolicy=simple</arg>
<arg>-XDaddTypeAnnotationsToSymbol=true</arg>
<arg>-Xplugin:ErrorProne</arg>
<arg>--should-stop=ifError=FLOW</arg>
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
Expand Down
1 change: 1 addition & 0 deletions plexus-compiler-its/src/main/it/issues-351/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
<arg>-XDcompilePolicy=simple</arg>
<arg>-XDaddTypeAnnotationsToSymbol=true</arg>
<arg>--should-stop=ifError=FLOW</arg>
<arg>-Xplugin:ErrorProne
-Xep:DeadException:WARN</arg>
Expand Down
2 changes: 1 addition & 1 deletion plexus-compilers/plexus-compiler-javac-errorprone/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
See https://errorprone.info</description>

<properties>
<javaVersion>17</javaVersion>
<javaVersion>21</javaVersion>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ with error-prone static analysis checks enabled.

See https://errorprone.info

**Requires** `JDK 17+`
**Requires** `JDK 21+`
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ protected int expectedWarnings() {
String javaVersion = getJavaVersion();
if (javaVersion.startsWith("1.8")) {
return 1;
} else if (javaVersion.contains("21") || javaVersion.contains("25")) {
} else if (Runtime.version().feature() >= 21) {
// javac 21 and later also warn that -source 8 and -target 8 are obsolete
return 5;
}
return 2;
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<project.build.outputTimestamp>2026-09-09T11:47:52Z</project.build.outputTimestamp>
<aspectj.version>1.9.21</aspectj.version>
<errorprone.version>2.37.0</errorprone.version>
<errorprone.version>2.50.0</errorprone.version>
<eclipse.sisu.version>1.1.0</eclipse.sisu.version>
<trimStackTrace>false</trimStackTrace>
<preparationGoals>clean install</preparationGoals>
Expand Down
Loading