summaryrefslogtreecommitdiffstats
path: root/http-utils/pom.xml
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2019-12-02 14:59:08 +0100
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2019-12-02 15:35:49 +0100
commit313236a5df9390dbd54e37a31665ba6277dd2713 (patch)
treebed3c47132edd855fe880640dc577d9fe2110056 /http-utils/pom.xml
parent39c902f023ba4356a5bc9fd525dacf23b977eb04 (diff)
Build http-utils with jdk8 and remove reflection hack
Diffstat (limited to 'http-utils/pom.xml')
-rw-r--r--http-utils/pom.xml29
1 files changed, 29 insertions, 0 deletions
diff --git a/http-utils/pom.xml b/http-utils/pom.xml
index aea402aef87..0d340922042 100644
--- a/http-utils/pom.xml
+++ b/http-utils/pom.xml
@@ -11,6 +11,13 @@
<artifactId>http-utils</artifactId>
<packaging>jar</packaging>
<version>7-SNAPSHOT</version>
+
+ <properties>
+ <!-- vespa-http-client targets jdk8 and uses this library -->
+ <!-- TODO remove once vespa-http-client no longer builds against jdk8 -->
+ <maven.compiler.release>8</maven.compiler.release>
+ </properties>
+
<dependencies>
<!-- provided -->
<dependency>
@@ -49,4 +56,26 @@
<scope>test</scope>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <jdkToolchain>
+ <version>${java.version}</version>
+ </jdkToolchain>
+ <source>${java.version}</source>
+ <target>${java.version}</target>
+ <showDeprecation>true</showDeprecation>
+ <compilerArgs>
+ <arg>-Xlint:all</arg>
+ <arg>-Xlint:-serial</arg>
+ <arg>-Werror</arg>
+ </compilerArgs>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>