Skip to content

Commit

Permalink
Make it a convention not a hard set.
Browse files Browse the repository at this point in the history
  • Loading branch information
marchermans committed May 18, 2024
1 parent fc882a9 commit 5a80e9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public void setJavaVersion(int javaVersion, String context) {
}

this.javaVersion = javaVersion;
project.getExtensions().getByType(JavaPluginExtension.class).getToolchain().getLanguageVersion().set(JavaLanguageVersion.of(javaVersion));
project.getExtensions().getByType(JavaPluginExtension.class).getToolchain().getLanguageVersion().convention(JavaLanguageVersion.of(javaVersion));
}
}

0 comments on commit 5a80e9f

Please sign in to comment.