Skip to content

Commit

Permalink
Build for Java 8 rather than Java 7.
Browse files Browse the repository at this point in the history
Part of #2743.
  • Loading branch information
eamonnmcmanus committed Sep 18, 2024
1 parent 6160932 commit c45fa90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ public void testExports() {

@Test
public void testRequireCapability() {
// When building with JDK >= 21, the minimum target version is Java 8
String expectedJavaVersion = Runtime.version().feature() < 21 ? "1.7" : "1.8";
String expectedJavaVersion = "1.8";

// Defines the minimum required Java version
assertThat(getAttribute("Require-Capability"))
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>7</maven.compiler.release>
<maven.compiler.release>8</maven.compiler.release>
<maven.compiler.testRelease>11</maven.compiler.testRelease>

<!-- Make the build reproducible, see https://maven.apache.org/guides/mini/guide-reproducible-builds.html -->
Expand Down

0 comments on commit c45fa90

Please sign in to comment.