summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.packaging/pom.xml
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2020-12-28 18:51:57 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2021-09-29 17:13:01 +0200
commit1d280db1472f7ec4bf26d6a14f7c3d8a0292b0e7 (patch)
tree358613fff388b5336f7023ff681a63260561ec96 /org.eclipse.jgit.packaging/pom.xml
parentf81a3fc91a51776e6b44a4fc0d9ba5ac488f2c9e (diff)
downloadjgit-1d280db1472f7ec4bf26d6a14f7c3d8a0292b0e7.tar.gz
jgit-1d280db1472f7ec4bf26d6a14f7c3d8a0292b0e7.zip
Enable compiler option --release
This ensures the compiler compiles against the public, supported and documented API for a specific VM version (here 11) [1]. This also means that we don't need EE descriptors in Eclipse anymore in order to ensure that only supported APIs of the selected Java version can be used. According to [2] if option --release is used --source and --target options can't be used. While we are at it also add default value for all new jdt core options added in Eclipse 4.21. [1] https://docs.oracle.com/en/java/javase/11/tools/javac.html [2] https://docs.oracle.com/en/java/javase/14/docs/specs/man/javac.html#option-release Change-Id: I852a5d7b0a3210751c15d79ec91915b4c01c41e2 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.packaging/pom.xml')
-rw-r--r--org.eclipse.jgit.packaging/pom.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit.packaging/pom.xml b/org.eclipse.jgit.packaging/pom.xml
index e05166f92e..65c4587689 100644
--- a/org.eclipse.jgit.packaging/pom.xml
+++ b/org.eclipse.jgit.packaging/pom.xml
@@ -22,6 +22,7 @@
<name>JGit Tycho Parent</name>
<properties>
+ <java.version>11</java.version>
<tycho-version>1.7.0</tycho-version>
<tycho-extras-version>${tycho-version}</tycho-extras-version>
<target-platform>jgit-4.6</target-platform>
@@ -205,8 +206,7 @@
<version>${tycho-version}</version>
<configuration>
<encoding>UTF-8</encoding>
- <source>11</source>
- <target>11</target>
+ <release>${java.version}</release>
</configuration>
</plugin>
<plugin>