aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-http-client
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2021-11-15 13:02:06 +0100
committergjoranv <gv@verizonmedia.com>2021-11-15 13:10:14 +0100
commit3b4972e15911ca5d106b5cd952aeeedd8411ce6a (patch)
treebe0058663a18e31ca35108ca9819460e855e5989 /vespa-http-client
parent3db0193e1998ef5ed3f176c4f46cc4c4c08f9000 (diff)
Use a custom property for setting relase version for clients.
- Always set release version via maven-compiler-plugin, instead of maven property which is overridden by compiler-plugin config. - Using a custom property with self-explanatory name makes comments redundant. - Remove explicit jdkToolchain config, as these modules no longer compile with jdk pre 9, due to the --release flag.
Diffstat (limited to 'vespa-http-client')
-rw-r--r--vespa-http-client/pom.xml11
1 files changed, 1 insertions, 10 deletions
diff --git a/vespa-http-client/pom.xml b/vespa-http-client/pom.xml
index fa73dd1bd74..eefb07d4ece 100644
--- a/vespa-http-client/pom.xml
+++ b/vespa-http-client/pom.xml
@@ -14,11 +14,6 @@
<name>${project.artifactId}</name>
<description>Independent external feeding API towards Vespa.</description>
- <properties>
- <!-- This is a client jar and should be compilable with jdk8 -->
- <maven.compiler.release>8</maven.compiler.release>
- </properties>
-
<dependencies>
<!-- NOTE: Adding dependencies here may break clients because this is used outside an OSGi container with
@@ -155,11 +150,7 @@
<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>
+ <release>${vespaClients.jdk.releaseVersion}</release>
<showDeprecation>true</showDeprecation>
<compilerArgs>
<arg>-Xlint:all</arg>