Skip to content

Commit 79cbf3a

Browse files
committed
Resolve kotlin multiplatform dependencies for gradle, basic functionality
1 parent f6b0638 commit 79cbf3a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

shared/src/main/resources/projectClassPathFinder.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,23 @@ 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) {
66+
def kotlinSourceSets = kotlinExtension.sourceSets
67+
68+
// Print the list of all dependencies jar files.
69+
kotlinSourceSets.forEach {
70+
// fetch the jar files from the current source set config (identified by their displayname, e.g, backendMain)
71+
def dependencyLocations = configurations["${it.displayName}ImplementationDependenciesMetadata"].files
72+
73+
dependencyLocations.each {
74+
System.out.println "kotlin-lsp-gradle $it"
75+
}
76+
}
77+
}
6178
}
6279
}
6380

0 commit comments

Comments
 (0)