Skip to content

Commit

Permalink
Recognize JDK 24
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo authored and slawekjaranowski committed Sep 19, 2024
1 parent 206cee3 commit a5b2a00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ public class EnforceBytecodeVersion extends AbstractResolveDependencies {

// Java 23
JDK_TO_MAJOR_VERSION_NUMBER_MAPPING.put("23", 67);

// Java 24
JDK_TO_MAJOR_VERSION_NUMBER_MAPPING.put("24", 68);
}

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ public void renderVersion() {
assertEquals("JDK 21", EnforceBytecodeVersion.renderVersion(65, 0));
assertEquals("JDK 22", EnforceBytecodeVersion.renderVersion(66, 0));
assertEquals("JDK 23", EnforceBytecodeVersion.renderVersion(67, 0));
assertEquals("JDK 24", EnforceBytecodeVersion.renderVersion(68, 0));
}
}

0 comments on commit a5b2a00

Please sign in to comment.