Skip to content

Commit 8e8be7b

Browse files
committed
Update Kotlin DSL plugin accessor class path resolution
1 parent 7b7ff2c commit 8e8be7b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

server/src/main/resources/kotlinDSLClassPathFinder.gradle

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ allprojects { project ->
1010
.forEach { System.out.println "kotlin-lsp-gradle $it" }
1111

1212
def projectAccessorsClassPathProperty = "gradleKotlinDsl.projectAccessorsClassPath"
13+
def pluginAccessorsClassPathProperty = "gradleKotlinDsl.pluginAccessorsClassPath"
1314

1415
// List dynamically generated Kotlin DSL accessors (e.g. the 'compile' configuration method)
1516
if (project.hasProperty(projectAccessorsClassPathProperty)) {
@@ -19,10 +20,12 @@ allprojects { project ->
1920
.forEach { System.out.println "kotlin-lsp-gradle $it" }
2021
}
2122

22-
// gradle.services.get(PluginAccessorClassPathGenerator.class).pluginSpecBuildersClassPath(project)
23-
// .bin
24-
// .asFiles
25-
// .forEach { System.out.println "kotlin-lsp-gradle $it" }
23+
if (project.hasProperty(pluginAccessorsClassPathProperty)) {
24+
project.getProperty(pluginAccessorsClassPathProperty)
25+
.bin
26+
.asFiles
27+
.forEach { System.out.println "kotlin-lsp-gradle $it" }
28+
}
2629
}
2730
}
2831
}

0 commit comments

Comments
 (0)