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
This commit is contained in:
Janne Valkealahti
2024-08-30 09:20:50 +01:00
parent bad75882e1
commit f5521b7bf3

View File

@@ -30,7 +30,7 @@ public class ToolchainPlugin implements Plugin<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) {