diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2022-07-15 14:33:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-15 14:33:23 +0200 |
commit | 2ced22a372c4a523f6b29e13d6c36cf73a2bc9b5 (patch) | |
tree | edfa991ac607f3ed3c9b80c80421fa1b348554ed /vespa-feed-client/pom.xml | |
parent | ff26daaf31ec0567dc6a9049d5e275cf7c4810dc (diff) | |
parent | 7ac175f1da9220bc6565e129c2f3dce8ff03b077 (diff) |
Merge pull request #23517 from vespa-engine/bjorncs/jdk8-compatv8.19.24
Build vespa-feed-client as multi-release JAR and use reflection as workaround 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> |