Skip to content

Commit

Permalink
fix - Add java 22 to compatibility matrix (#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo committed Jun 21, 2024
1 parent 1185a1f commit 72e228c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,9 @@ private List<IClasspathEntry> getDependencyJars(DependencyModulesResult dependen
*/
private String getHighestCompatibleJavaVersion(String gradleVersion) {
GradleVersion version = GradleVersion.version(gradleVersion);
if (version.compareTo(GradleVersion.version("8.5")) >= 0) {
if (version.compareTo(GradleVersion.version("8.8")) >= 0) {
return JavaCore.VERSION_22;
} else if (version.compareTo(GradleVersion.version("8.5")) >= 0) {
return JavaCore.VERSION_21;
} else if (version.compareTo(GradleVersion.version("8.3")) >= 0) {
return JavaCore.VERSION_20;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ private void updateProjectDescription(IProject project, IProgressMonitor monitor
// because that API will ignore the variable descriptions.
if (project instanceof Project internalProject) {
ProjectDescription description = internalProject.internalGetDescription();
if (description == null) {
return;
}
VariableDescription variableDescription = new VariableDescription(SCHEMA_VERSION_KEY, SCHEMA_VERSION);
boolean changed = description.setVariableDescription(SCHEMA_VERSION_KEY, variableDescription);
if (changed) {
Expand Down

0 comments on commit 72e228c

Please sign in to comment.