summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorMichael Keppler <Michael.Keppler@gmx.de>2019-11-16 16:23:34 +0100
committerMichael Keppler <Michael.Keppler@gmx.de>2019-11-16 16:23:34 +0100
commit7ab7ec00c5cedadddc0fcdf9cc577b66730cd95f (patch)
treefee9da7e6f31726afe79f4ed7cc6000ce6d2eaba /pom.xml
parenta6bdcace305513f77085a4d0420ee395336d9ec1 (diff)
downloadjgit-7ab7ec00c5cedadddc0fcdf9cc577b66730cd95f.tar.gz
jgit-7ab7ec00c5cedadddc0fcdf9cc577b66730cd95f.zip
Use Java 8 source and target in Maven
Building the jgit aggregator with Maven leads to a compiler level 1.6 for me, thereby failing the build. Multiple profiles specify source/target level separately, but there seems no global setting. Adding the global properties makes the jgit aggregator compile on my system. Change-Id: Ia5613cc0fcf6085265a9e48f940e5a7d3f998608 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index b0edd34b98..e5a6fee363 100644
--- a/pom.xml
+++ b/pom.xml
@@ -180,6 +180,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
+ <maven.compiler.source>1.8</maven.compiler.source>
+ <maven.compiler.target>1.8</maven.compiler.target>
<bundle-manifest>${project.build.directory}/META-INF/MANIFEST.MF</bundle-manifest>
<jgit-last-release-version>5.4.0.201906121030-r</jgit-last-release-version>