Skip to content

Commit 20793bf

Browse files
authored
build: fail on warning (#770)
1 parent 978a7fe commit 20793bf

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

pom.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,12 @@
8383
<plugin>
8484
<groupId>org.apache.maven.plugins</groupId>
8585
<artifactId>maven-compiler-plugin</artifactId>
86-
<version>3.5.1</version>
86+
<version>3.9.0</version>
8787
<configuration>
8888
<source>1.8</source>
8989
<target>1.8</target>
90+
<showWarnings>true</showWarnings>
91+
<failOnWarning>true</failOnWarning>
9092
</configuration>
9193
</plugin>
9294
<plugin>
@@ -198,6 +200,15 @@
198200
</dependency>
199201
</dependencies>
200202
</profile>
203+
<profile>
204+
<id>jdk-9-and-above</id>
205+
<activation>
206+
<jdk>[9,)</jdk>
207+
</activation>
208+
<properties>
209+
<maven.compiler.release>8</maven.compiler.release>
210+
</properties>
211+
</profile>
201212
<profile>
202213
<id>release</id>
203214
<build>

0 commit comments

Comments
 (0)