Skip to content

Commit 586db5d

Browse files
committed
build: fix "Warning: bootstrap class path not set in conjunction with -source 8" on JDK 11 and 17
Part of #1350 #1158 #1556
1 parent 123e768 commit 586db5d

File tree

1 file changed

+37
-3
lines changed

1 file changed

+37
-3
lines changed

Diff for: pom.xml

+37-3
Original file line numberDiff line numberDiff line change
@@ -875,8 +875,6 @@
875875
<artifactId>maven-compiler-plugin</artifactId>
876876
<version>${compiler.plugin.version}</version>
877877
<configuration>
878-
<source>${java.version}</source>
879-
<target>${java.version}</target>
880878
<showDeprecation>true</showDeprecation>
881879
<showWarnings>true</showWarnings>
882880
<debug>false</debug>
@@ -1263,11 +1261,13 @@
12631261
</activation>
12641262
<build>
12651263
<plugins>
1266-
<!-- Required for ErrorProne -->
12671264
<plugin>
12681265
<groupId>org.apache.maven.plugins</groupId>
12691266
<artifactId>maven-compiler-plugin</artifactId>
12701267
<configuration>
1268+
<source>${java.version}</source>
1269+
<target>${java.version}</target>
1270+
<!-- Required for ErrorProne -->
12711271
<fork>true</fork>
12721272
<compilerArgs combine.children="append">
12731273
<compilerArg>
@@ -1279,6 +1279,40 @@
12791279
</plugins>
12801280
</build>
12811281
</profile>
1282+
<profile>
1283+
<id>jdk11</id>
1284+
<activation>
1285+
<jdk>11</jdk>
1286+
</activation>
1287+
<build>
1288+
<plugins>
1289+
<plugin>
1290+
<groupId>org.apache.maven.plugins</groupId>
1291+
<artifactId>maven-compiler-plugin</artifactId>
1292+
<configuration>
1293+
<release>11</release>
1294+
</configuration>
1295+
</plugin>
1296+
</plugins>
1297+
</build>
1298+
</profile>
1299+
<profile>
1300+
<id>jdk17</id>
1301+
<activation>
1302+
<jdk>17</jdk>
1303+
</activation>
1304+
<build>
1305+
<plugins>
1306+
<plugin>
1307+
<groupId>org.apache.maven.plugins</groupId>
1308+
<artifactId>maven-compiler-plugin</artifactId>
1309+
<configuration>
1310+
<release>17</release>
1311+
</configuration>
1312+
</plugin>
1313+
</plugins>
1314+
</build>
1315+
</profile>
12821316
<profile>
12831317
<id>frontend</id>
12841318
<activation>

0 commit comments

Comments
 (0)