Skip to content

Commit 9402a44

Browse files
authored
Merge pull request #377 from themkat/kotlin_multiplatform_issue
Experimental resolution of dependencies in Kotlin multiplatform projects (Gradle)
2 parents 1093f44 + 5fb055a commit 9402a44

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

shared/src/main/resources/projectClassPathFinder.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,21 @@ allprojects { project ->
5858
}
5959
}
6060
}
61+
62+
63+
// handle kotlin multiplatform style dependencies if any
64+
def kotlinExtension = project.extensions.findByName("kotlin")
65+
if(kotlinExtension && kotlinExtension.hasProperty("targets")) {
66+
def kotlinSourceSets = kotlinExtension.sourceSets
67+
68+
// Print the list of all dependencies jar files.
69+
kotlinExtension.targets.names.each {
70+
def classpath = configurations["${it}CompileClasspath"]
71+
classpath.files.each {
72+
System.out.println "kotlin-lsp-gradle $it"
73+
}
74+
}
75+
}
6176
}
6277
}
6378

0 commit comments

Comments
 (0)