Skip to content

Commit 4fca868

Browse files
authored
Require at least JDK 11 for the build (#1413)
1 parent a68effb commit 4fca868

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

.appveyor.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ install:
77
curl -LsS "http://www.apache.org/dyn/closer.cgi?action=download&filename=maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip" > apache-maven-3.3.9-bin.zip &&
88
unzip apache-maven-3.3.9-bin.zip -d C:\Users\appveyor
99
)
10-
- SET PATH=C:\Users\appveyor\apache-maven-3.3.9\bin;%PATH%
10+
- SET JAVA_HOME=C:\Program Files\Java\jdk11
11+
- SET PATH=C:\Users\appveyor\apache-maven-3.3.9\bin;%JAVA_HOME%;%PATH%
1112

1213
build_script:
1314
# Maven 3.3.9 requires Java >= 7, but generation of Javadocs requires Java <= 6 (https://github.com/jacoco/jacoco/issues/110)

.azure-pipelines/azure-pipelines.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
tar -xzf .maven/maven.tar.gz -C .maven --strip-components 1
7979
displayName: Setup Maven
8080
- bash: |
81-
if [[ "$JDK_VERSION" -ge "8" ]]; then
81+
if [[ "$JDK_VERSION" -ge "11" ]]; then
8282
export JAVA_HOME=$PWD/.jdk
8383
fi
8484
if [[ "$BUILD_SOURCEBRANCH" == "refs/heads/master" && "$JDK_VERSION" == "5" ]]; then

org.jacoco.build/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@
531531
<configuration>
532532
<rules>
533533
<requireJavaVersion>
534-
<version>1.8</version>
534+
<version>11</version>
535535
</requireJavaVersion>
536536
<requireMavenVersion>
537537
<!-- Maven 3.8.2 contains bug - see https://github.com/jacoco/jacoco/issues/1218 -->

org.jacoco.doc/docroot/doc/build.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1>Build</h1>
2424
The JaCoCo build is based on <a href="http://maven.apache.org/">Maven</a> and
2525
can be locally executed on every machine with a proper
2626
<a href="environment.html">environment setup</a>. In particular you need at
27-
least <a href="http://maven.apache.org/">Maven 3.3.9</a> and JDK 8
27+
least <a href="http://maven.apache.org/">Maven 3.3.9</a> and JDK 11
2828
installations. Developers are encouraged to run the build before every commit
2929
to ensure consistency of the source tree.
3030
</p>

org.jacoco.doc/docroot/doc/changes.html

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ <h3>Non-functional Changes</h3>
4040
<li>JaCoCo now depends on ASM 9.4
4141
(GitHub <a href="https://github.com/jacoco/jacoco/issues/1299">#1299</a>,
4242
<a href="https://github.com/jacoco/jacoco/issues/1368">#1368</a>).</li>
43+
<li>JaCoCo build now requires JDK 11
44+
(GitHub <a href="https://github.com/jacoco/jacoco/issues/1413">#1413</a>).</li>
4345
</ul>
4446

4547
<h2>Release 0.8.8 (2022/04/05)</h2>

org.jacoco.doc/docroot/doc/environment.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ <h3>Build</h3>
7676

7777
<p>
7878
The JaCoCo build is based on <a href="http://maven.apache.org/">Maven</a>
79-
and requires at least Maven 3.3.9 and JDK 8.
79+
and requires at least Maven 3.3.9 and JDK 11.
8080
See the <a href="build.html">build description</a> for details.
8181
</p>
8282

0 commit comments

Comments
 (0)