Skip to content

Commit

Permalink
split compiler config for sources/tests
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Mar 22, 2022
1 parent a75c47c commit 2f71bc4
Showing 1 changed file with 34 additions and 11 deletions.
45 changes: 34 additions & 11 deletions wsit/pom.xml
Expand Up @@ -395,19 +395,37 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<release>11</release>
<encoding>UTF-8</encoding>
<compilerArgs combine.children="append">
<arg>${comp.xlint}</arg>
<arg>${comp.xdoclint}</arg>
<arg>-Xmaxwarns</arg>
<arg>${warn.limit}</arg>
<arg>-Xmaxerrs</arg>
<arg>${warn.limit}</arg>
</compilerArgs>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
</configuration>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<compilerArgs combine.children="append">
<arg>${comp.xlint}</arg>
<arg>${comp.xdoclint}</arg>
<arg>-Xmaxwarns</arg>
<arg>${warn.limit}</arg>
<arg>-Xmaxerrs</arg>
<arg>${warn.limit}</arg>
</compilerArgs>
</configuration>
</execution>
<execution>
<id>default-testCompile</id>
<configuration>
<compilerArgs combine.children="append">
<arg>${comp.test.xlint}</arg>
<arg>${comp.test.xdoclint}</arg>
<arg>-Xmaxwarns</arg>
<arg>${warn.test.limit}</arg>
<arg>-Xmaxerrs</arg>
<arg>${warn.test.limit}</arg>
</compilerArgs>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -459,7 +477,6 @@
<addDefaultEntries>false</addDefaultEntries>
</manifest>
</archive>
<release>11</release>
<doclint>${jdoc.doclint}</doclint>
<quiet>true</quiet>
<notimestamp>true</notimestamp>
Expand Down Expand Up @@ -632,6 +649,8 @@

<istack.plugins.version>4.1.0</istack.plugins.version>

<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.testRelease>11</maven.compiler.testRelease>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ssZ</maven.build.timestamp.format>

Expand All @@ -651,6 +670,10 @@
<comp.xdoclint>-Xdoclint:all,-missing</comp.xdoclint>
<warn.limit>150000</warn.limit>
<jdoc.doclint>all,-missing</jdoc.doclint>
<!-- not interested in warnings from tests (yet) -->
<comp.test.xlint>-Xlint:none</comp.test.xlint>
<comp.test.xdoclint>-Xdoclint:none</comp.test.xdoclint>
<warn.test.limit>10</warn.test.limit>
</properties>

</project>

0 comments on commit 2f71bc4

Please sign in to comment.