Skip to content

Commit be23840

Browse files
committed
Fix project/plugin accessor classpath query for Kotlin DSL
1 parent 4380c93 commit be23840

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/src/main/resources/kotlinDSLClassPathFinder.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import org.gradle.kotlin.dsl.accessors.AccessorsClassPathKt
2-
import org.gradle.kotlin.dsl.accessors.PluginAccessorsClassPathKt
1+
import org.gradle.kotlin.dsl.accessors.ProjectAccessorsClassPathGenerator
2+
import org.gradle.kotlin.dsl.accessors.PluginAccessorClassPathGenerator
33
import org.gradle.internal.classpath.ClassPath
44

55
allprojects { project ->
@@ -12,12 +12,12 @@ allprojects { project ->
1212
.forEach { System.out.println "kotlin-lsp-gradle $it" }
1313

1414
// List dynamically generated Kotlin DSL accessors (e.g. the 'compile' configuration method)
15-
AccessorsClassPathKt.projectAccessorsClassPath(project, ClassPath.EMPTY)
15+
gradle.services.get(ProjectAccessorsClassPathGenerator.class).projectAccessorsClassPath(project, ClassPath.EMPTY)
1616
.bin
1717
.asFiles
1818
.forEach { System.out.println "kotlin-lsp-gradle $it" }
1919

20-
PluginAccessorsClassPathKt.pluginSpecBuildersClassPath(project)
20+
gradle.services.get(PluginAccessorClassPathGenerator.class).pluginSpecBuildersClassPath(project)
2121
.bin
2222
.asFiles
2323
.forEach { System.out.println "kotlin-lsp-gradle $it" }

0 commit comments

Comments
 (0)