Skip to content

Commit

Permalink
build: fix "Warning: bootstrap class path not set in conjunction with…
Browse files Browse the repository at this point in the history
… -source 8" on JDK 11 and 17

Part of #1350 #1158 #1556
  • Loading branch information
php-coder committed Dec 28, 2023
1 parent 123e768 commit 586db5d
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -875,8 +875,6 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler.plugin.version}</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<debug>false</debug>
Expand Down Expand Up @@ -1263,11 +1261,13 @@
</activation>
<build>
<plugins>
<!-- Required for ErrorProne -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<!-- Required for ErrorProne -->
<fork>true</fork>
<compilerArgs combine.children="append">
<compilerArg>
Expand All @@ -1279,6 +1279,40 @@
</plugins>
</build>
</profile>
<profile>
<id>jdk11</id>
<activation>
<jdk>11</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<release>11</release>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>jdk17</id>
<activation>
<jdk>17</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<release>17</release>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>frontend</id>
<activation>
Expand Down

0 comments on commit 586db5d

Please sign in to comment.