Skip to content

Commit f5521b7

Browse files
committed
Fix ToolchainPlugin
- Change toolchain to get configured immediately instead after project evaluation which somehow caused i.e. vscode not detect correct project jdk in use. - Relates #1131
1 parent bad7588 commit f5521b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildSrc/src/main/java/org/springframework/shell/gradle/ToolchainPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void apply(Project project) {
3030

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

3636
private void configure(Project project, ToolchainExtension toolchain) {

0 commit comments

Comments
 (0)