diff options
Diffstat (limited to 'vespa-http-client/pom.xml')
-rw-r--r-- | vespa-http-client/pom.xml | 46 |
1 files changed, 44 insertions, 2 deletions
diff --git a/vespa-http-client/pom.xml b/vespa-http-client/pom.xml index b42c4c32a08..bcb761b2dbb 100644 --- a/vespa-http-client/pom.xml +++ b/vespa-http-client/pom.xml @@ -14,6 +14,28 @@ <name>${project.artifactId}</name> <description>Independent external feeding API towards Vespa.</description> + <profiles> + <profile> + <id>jdk11</id> + <activation> + <jdk>11</jdk> + </activation> + <properties> + <java.version>11</java.version> + </properties> + </profile> + <profile> + <id>jdk1.8</id> + <activation> + <jdk>1.8</jdk> + </activation> + <properties> + <java.version>8</java.version> + </properties> + </profile> + </profiles> + + <dependencies> <!-- NOTE: Adding dependencies here may break clients because this is used outside an OSGi container with @@ -135,8 +157,28 @@ </executions> </plugin> <plugin> - <groupId>com.yahoo.vespa</groupId> - <artifactId>abi-check-plugin</artifactId> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.8.0</version> + <configuration> + <jdkToolchain> + <version>${java.version}</version> + </jdkToolchain> + <source>${java.version}</source> + <target>${java.version}</target> + <showWarnings>true</showWarnings> + <optimize>true</optimize> + <showDeprecation>false</showDeprecation> + <compilerArgs> + <arg>-Xlint:all</arg> + <arg>-Xlint:-serial</arg> + <arg>-Xlint:-try</arg> + <arg>-Xlint:-processing</arg> + <arg>-Xlint:-varargs</arg> + <arg>-Xlint:-options</arg> + <arg>-Werror</arg> + </compilerArgs> + </configuration> </plugin> </plugins> </build> |