Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMat Booth2020-03-23 01:55:28 +0000
committerMat Booth2020-03-23 02:07:21 +0000
commit94c6971552563e1889f13b2aebee354794aa4c74 (patch)
treeed9ff5f857934236cb06b0f646ee1c361ab4e565
parent4153c80f717f7de5ae9f728552ab254f15c43d0c (diff)
downloadrt.equinox.p2-94c6971552563e1889f13b2aebee354794aa4c74.tar.gz
rt.equinox.p2-94c6971552563e1889f13b2aebee354794aa4c74.tar.xz
rt.equinox.p2-94c6971552563e1889f13b2aebee354794aa4c74.zip
Bug 561346 - NoSuchMethodError when built on Java 11 but run on Java 8I20200323-1800
Sets the "release" to 8 when building with JDK 9 or newer. Change-Id: Iecd8a934d4e48c2c674f223d3725d452e519f523 Signed-off-by: Mat Booth <mat.booth@redhat.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.artifact.repository/pom.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/pom.xml b/bundles/org.eclipse.equinox.p2.artifact.repository/pom.xml
index 593a0e647..49b7a10a8 100644
--- a/bundles/org.eclipse.equinox.p2.artifact.repository/pom.xml
+++ b/bundles/org.eclipse.equinox.p2.artifact.repository/pom.xml
@@ -11,4 +11,15 @@
<artifactId>org.eclipse.equinox.p2.artifact.repository</artifactId>
<version>1.3.400-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
+ <profiles>
+ <profile>
+ <id>jdk9-or-newer</id>
+ <activation>
+ <jdk>[9,)</jdk>
+ </activation>
+ <properties>
+ <maven.compiler.release>8</maven.compiler.release>
+ </properties>
+ </profile>
+ </profiles>
</project>

Back to the top