From a7b527d9427485c9758a36e1ffdb148ac2b0124a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Harrtell?= Date: Thu, 5 Aug 2021 20:44:13 +0200 Subject: [PATCH] java: Use maven profile to target Java 8 bytecode (#6764) --- pom.xml | 201 +++++++++++++++++++++++++++++--------------------------- 1 file changed, 105 insertions(+), 96 deletions(-) diff --git a/pom.xml b/pom.xml index fe1cec7e51e..be703408194 100644 --- a/pom.xml +++ b/pom.xml @@ -42,103 +42,112 @@ java - - - maven-compiler-plugin - - 1.8 - 1.8 - - 3.2 - - - maven-surefire-plugin - - - **/*Test.java - - - 2.18.1 - - - org.apache.maven.plugins - maven-source-plugin - 2.3 - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.9.1 - - -Xdoclint:none - -Xdoclint:none - - - - attach-javadocs - - jar - - - - - - org.apache.felix - maven-bundle-plugin - 3.0.1 - true - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 - true - - ossrh - https://oss.sonatype.org/ - true - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.6 - - - sign-artifacts - verify - - sign - + + + + jdk9 + + [1.9,) + + + + + maven-compiler-plugin - - --pinentry-mode - loopback - + 8 - - - - - org.apache.maven.plugins - maven-release-plugin - 2.5.3 - - true - false - release - deploy - - - - + 3.8.1 + + + maven-surefire-plugin + + + **/*Test.java + + + 2.22.2 + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.3.0 + + -Xdoclint:none + -Xdoclint:none + + + + attach-javadocs + + jar + + + + + + org.apache.felix + maven-bundle-plugin + 5.1.2 + true + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + true + + ossrh + https://oss.sonatype.org/ + true + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.0.1 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + org.apache.maven.plugins + maven-release-plugin + 2.5.3 + + true + false + release + deploy + + + + + +