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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user