enable more warnings
* and add -Werror flag, disallowing warnings
* bump maven-plugin-api version to avoid the evil warning
"Supported source version 'RELEASE_6' from annotation processor 'org.eclipse.sisu.space.SisuIndexAPT6' less than -source '1.8'"
* explicitly add guava dependency
* note: -Xlint:processing would warn about
org.apache.maven.plugins.annotations.* not being "claimed",
this is not a problem it seems.
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
+ <version>3.5.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>scalatest_${scala.major-version}</artifactId>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ </dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<source>1.8</source>
<target>1.8</target>
<compilerArgs>
- <arg>-Xlint:rawtypes</arg>
- <arg>-Xlint:unchecked</arg>
- <arg>-Xlint:deprecation</arg>
+ <arg>-Xlint:all</arg>
+ <arg>-Xlint:-processing</arg>
+ <arg>-Werror</arg>
</compilerArgs>
</configuration>
</plugin>
