Skip to content

Commit c2aec4e

Browse files
committed
Add PluginAccessorsClassPath
1 parent 21784c9 commit c2aec4e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

server/src/main/resources/kotlinDSLClassPathFinder.gradle

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import org.gradle.kotlin.dsl.accessors.AccessorsClassPathKt
2+
import org.gradle.kotlin.dsl.accessors.PluginAccessorsClassPathKt
23
import org.gradle.internal.classpath.ClassPath
34

45
allprojects { project ->
@@ -11,8 +12,14 @@ allprojects { project ->
1112
.forEach { System.out.println "kotlin-lsp-gradle $it" }
1213

1314
// List dynamically generated Kotlin DSL accessors (e.g. the 'compile' configuration method)
14-
def accessors = AccessorsClassPathKt.projectAccessorsClassPath(project, ClassPath.EMPTY)
15-
accessors.bin.asFiles
15+
AccessorsClassPathKt.projectAccessorsClassPath(project, ClassPath.EMPTY)
16+
.bin
17+
.asFiles
18+
.forEach { System.out.println "kotlin-lsp-gradle $it" }
19+
20+
PluginAccessorsClassPathKt.pluginSpecBuildersClassPath(project)
21+
.bin
22+
.asFiles
1623
.forEach { System.out.println "kotlin-lsp-gradle $it" }
1724
}
1825
}

0 commit comments

Comments
 (0)