Skip to content

Commit 2a538c5

Browse files
Bananeweizenmuhlba91
authored andcommitted
infra: avoid maven warnings
1 parent 2f436be commit 2a538c5

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

pom.xml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
<checkstyle.sevntu.configLocation>https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-${maven.sevntu.checkstyle.plugin.checkstyle.version}/config/checkstyle-sevntu-checks.xml</checkstyle.sevntu.configLocation>
107107
<checkstyle.sevntu.cache.file>${project.build.outputDirectory}/sevntu.cache</checkstyle.sevntu.cache.file>
108108
<maven.jacoco.plugin.version>0.8.10</maven.jacoco.plugin.version>
109-
<java.version>11</java.version>
109+
<maven.compiler.release>11</maven.compiler.release>
110110
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
111111
<!-- we disable ITs by default as it need download of 200MB sonar application jar -->
112112
<skipITs>true</skipITs>
@@ -330,10 +330,6 @@
330330
<groupId>org.apache.maven.plugins</groupId>
331331
<artifactId>maven-compiler-plugin</artifactId>
332332
<version>3.11.0</version>
333-
<configuration>
334-
<source>${java.version}</source>
335-
<target>${java.version}</target>
336-
</configuration>
337333
</plugin>
338334
<plugin>
339335
<groupId>org.codehaus.mojo</groupId>
@@ -452,7 +448,7 @@
452448
<version>3.13.0</version>
453449
<configuration>
454450
<analysisCache>false</analysisCache>
455-
<targetJdk>${java.version}</targetJdk>
451+
<targetJdk>${maven.compiler.release}</targetJdk>
456452
<minimumTokens>20</minimumTokens>
457453
<skipEmptyReport>false</skipEmptyReport>
458454
<failOnViolation>true</failOnViolation>
@@ -515,7 +511,7 @@
515511
<artifactId>forbiddenapis</artifactId>
516512
<version>3.5.1</version>
517513
<configuration>
518-
<targetVersion>${java.version}</targetVersion>
514+
<targetVersion>${maven.compiler.release}</targetVersion>
519515
<failOnUnsupportedJava>false</failOnUnsupportedJava>
520516
<bundledSignatures>
521517
<bundledSignature>jdk-unsafe</bundledSignature>
@@ -804,7 +800,7 @@
804800
<configuration>
805801
<rules>
806802
<requireJavaVersion>
807-
<version>${java.version}</version>
803+
<version>${maven.compiler.release}</version>
808804
</requireJavaVersion>
809805
<requireMavenVersion>
810806
<version>3.0.1</version>

0 commit comments

Comments
 (0)