This is an automated email from the ASF dual-hosted git repository.
liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git
The following commit(s) were added to refs/heads/master by this push:
new a98bd4a8c [SCB-2448] allow user to build with jdk17 (#2780)
a98bd4a8c is described below
commit a98bd4a8cc0542648d15c7002b4e9f81cc4aea12
Author: ZhangJian He <[email protected]>
AuthorDate: Tue Apr 12 21:45:38 2022 +0800
[SCB-2448] allow user to build with jdk17 (#2780)
---
pom.xml | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index cf712af29..e34ed46e6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -41,6 +41,7 @@
<java.version>1.8</java.version>
<argLine>-Dfile.encoding=UTF-8</argLine>
<skip-remote-resource>true</skip-remote-resource>
+ <werror.properties>-Werror</werror.properties>
<dependency-check-maven.version>7.0.4</dependency-check-maven.version>
</properties>
@@ -371,7 +372,7 @@
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<compilerArgs>
- <arg>-Werror</arg>
+ <arg>${werror.properties}</arg>
<arg>-Xlint:all</arg>
<!--not care for jdk8/jdk7 compatible problem-->
<arg>-Xlint:-classfile</arg>
@@ -628,6 +629,15 @@
</plugins>
</reporting>
</profile>
+ <profile>
+ <id>jdk17</id>
+ <activation>
+ <jdk>[17,)</jdk>
+ </activation>
+ <properties>
+ <werror.properties/>
+ </properties>
+ </profile>
</profiles>
</project>