Skip to content

Commit

Permalink
Remove Java 21 hack (#1356)
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy authored Apr 5, 2024
1 parent fe6cbd9 commit 20d26a2
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,6 @@ private void reloadPlatformServiceCache() throws RegistryResolutionException, IO

SortedSet<Integer> compatibleJavaLTSVersions = getCompatibleLTSVersions(
new JavaVersion(minimumJavaVersion));
if (platformKey.equals("com.redhat.quarkus.platform")) {
// Hack to remove 21 support from code.quarkus.redhat.com
compatibleJavaLTSVersions.remove(21);
}
int recommendedJavaVersion = Optional.ofNullable(getRecommendedJavaVersion(extensionCatalog))
.map(Integer::parseInt).orElse(compatibleJavaLTSVersions.stream().findFirst().orElseThrow());
String quarkusCoreVersion = stream.getRecommendedRelease().getQuarkusCoreVersion();
Expand Down Expand Up @@ -312,4 +308,4 @@ public record PlatformServiceCache(
LocalDateTime cacheLastUpdated,
String platformTimestamp) {
}
}
}

0 comments on commit 20d26a2

Please sign in to comment.