summaryrefslogtreecommitdiffstats
path: root/vespa-feed-client/pom.xml
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@yahooinc.com>2022-07-15 13:23:32 +0200
committerBjørn Christian Seime <bjorncs@yahooinc.com>2022-07-15 14:32:08 +0200
commit7ac175f1da9220bc6565e129c2f3dce8ff03b077 (patch)
treeedfa991ac607f3ed3c9b80c80421fa1b348554ed /vespa-feed-client/pom.xml
parentff26daaf31ec0567dc6a9049d5e275cf7c4810dc (diff)
Build vespa-feed-client as multi-release JAR
Hardcode ALPN protcol name for JDK8
Diffstat (limited to 'vespa-feed-client/pom.xml')
-rw-r--r--vespa-feed-client/pom.xml31
1 files changed, 27 insertions, 4 deletions
diff --git a/vespa-feed-client/pom.xml b/vespa-feed-client/pom.xml
index 536637bdce2..8b7b82573c4 100644
--- a/vespa-feed-client/pom.xml
+++ b/vespa-feed-client/pom.xml
@@ -53,10 +53,33 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <release>${vespaClients.jdk.releaseVersion}</release>
- <showDeprecation>true</showDeprecation>
- </configuration>
+ <executions>
+ <execution>
+ <id>compile-java-${vespaClients.jdk.releaseVersion}</id>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ <configuration>
+ <release>${vespaClients.jdk.releaseVersion}</release>
+ <showDeprecation>true</showDeprecation>
+ </configuration>
+ </execution>
+ <execution>
+ <id>compile-java-9</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ <configuration>
+ <release>9</release>
+ <compileSourceRoots>
+ <compileSourceRoot>${project.basedir}/src/main/java9</compileSourceRoot>
+ </compileSourceRoots>
+ <outputDirectory>${project.build.outputDirectory}/META-INF/versions/9</outputDirectory>
+ <showDeprecation>true</showDeprecation>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>