Selaa lähdekoodia

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>
tags/v5.6.0.201911271000-m3
Michael Keppler 4 vuotta sitten
vanhempi
commit
7ab7ec00c5
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2
    0
      pom.xml

+ 2
- 0
pom.xml Näytä tiedosto

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format> <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> <bundle-manifest>${project.build.directory}/META-INF/MANIFEST.MF</bundle-manifest>


<jgit-last-release-version>5.4.0.201906121030-r</jgit-last-release-version> <jgit-last-release-version>5.4.0.201906121030-r</jgit-last-release-version>

Loading…
Peruuta
Tallenna