Skip to content

Commit

Permalink
Fix ToolchainPlugin
Browse files Browse the repository at this point in the history
- Change toolchain to get configured immediately instead
  after project evaluation which somehow caused i.e.
  vscode not detect correct project jdk in use.
- Relates spring-projects#1131
  • Loading branch information
jvalkeal committed Aug 30, 2024
1 parent bad7588 commit f5521b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void apply(Project project) {

private void configureToolchain(Project project) {
ToolchainExtension toolchain = project.getExtensions().create("toolchain", ToolchainExtension.class, project);
project.afterEvaluate((evaluated) -> configure(evaluated, toolchain));
configure(project, toolchain);
}

private void configure(Project project, ToolchainExtension toolchain) {
Expand Down

0 comments on commit f5521b7

Please sign in to comment.