Skip to content

Commit

Permalink
build: disable -Werror compiler argument in tests (confluentinc#4759)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkonstantine authored Mar 12, 2020
1 parent 2363439 commit 62dc5d3
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 12 deletions.
33 changes: 33 additions & 0 deletions ksql-engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,39 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>compile</id>
<phase>process-sources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<compilerArgs>
<arg>-Xlint:all,-options,-path</arg>
<arg>-parameters</arg>
<arg>-Werror</arg>
</compilerArgs>
</configuration>
</execution>
<execution>
<id>test-compile</id>
<phase>process-test-sources</phase>
<goals>
<goal>testCompile</goal>
</goals>
<configuration>
<compilerArgs>
<arg>-Xlint:all,-options,-path</arg>
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr4-maven-plugin</artifactId>
Expand Down
33 changes: 27 additions & 6 deletions ksql-version-metrics-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,33 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<arg>-Xlint:all,-options,-path,-unchecked</arg>
<arg>-Werror</arg>
</compilerArgs>
</configuration>
<executions>
<execution>
<id>compile</id>
<phase>process-sources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<compilerArgs>
<arg>-Xlint:all,-options,-path,-unchecked</arg>
<arg>-Werror</arg>
</compilerArgs>
</configuration>
</execution>
<execution>
<id>test-compile</id>
<phase>process-test-sources</phase>
<goals>
<goal>testCompile</goal>
</goals>
<configuration>
<compilerArgs>
<arg>-Xlint:all,-options,-path,-unchecked</arg>
</compilerArgs>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
Expand Down
34 changes: 28 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,34 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<arg>-Xlint:all,-options,-path</arg>
<arg>-Werror</arg>
</compilerArgs>
</configuration>
<executions>
<execution>
<id>compile</id>
<phase>process-sources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<compilerArgs>
<arg>-Xlint:all,-options,-path</arg>
<arg>-parameters</arg>
<arg>-Werror</arg>
</compilerArgs>
</configuration>
</execution>
<execution>
<id>test-compile</id>
<phase>process-test-sources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<compilerArgs>
<arg>-Xlint:all,-options,-path</arg>
</compilerArgs>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
Expand Down

0 comments on commit 62dc5d3

Please sign in to comment.