diff options
author | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2022-07-15 13:23:32 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2022-07-15 14:32:08 +0200 |
commit | 7ac175f1da9220bc6565e129c2f3dce8ff03b077 (patch) | |
tree | edfa991ac607f3ed3c9b80c80421fa1b348554ed /vespa-feed-client/pom.xml | |
parent | ff26daaf31ec0567dc6a9049d5e275cf7c4810dc (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.xml | 31 |
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> |