diff --git a/shared/src/main/resources/projectClassPathFinder.gradle b/shared/src/main/resources/projectClassPathFinder.gradle index 7ef0a56b3..7fce53927 100644 --- a/shared/src/main/resources/projectClassPathFinder.gradle +++ b/shared/src/main/resources/projectClassPathFinder.gradle @@ -58,6 +58,21 @@ allprojects { project -> } } } + + + // handle kotlin multiplatform style dependencies if any + def kotlinExtension = project.extensions.findByName("kotlin") + if(kotlinExtension && kotlinExtension.hasProperty("targets")) { + def kotlinSourceSets = kotlinExtension.sourceSets + + // Print the list of all dependencies jar files. + kotlinExtension.targets.names.each { + def classpath = configurations["${it}CompileClasspath"] + classpath.files.each { + System.out.println "kotlin-lsp-gradle $it" + } + } + } } }