File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ plugins {
55}
66
77group = " dev.arbjerg"
8- version = " 1.0.12 "
8+ version = " 1.0.13 "
99
1010repositories {
1111 mavenCentral()
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import org.gradle.api.tasks.Copy
1313import org.gradle.api.tasks.SourceSetContainer
1414import org.gradle.jvm.tasks.Jar
1515import org.gradle.kotlin.dsl.*
16+ import kotlin.io.path.div
1617
1718private const val lavalinkExtensionName = " lavalinkPlugin"
1819
@@ -117,12 +118,18 @@ private fun Project.configureTasks(serverDependency: Provider<Dependency>) {
117118 .allDependencies
118119 .filterIsInstance<ProjectDependency >()
119120 .forEach {
120- val classes = it.dependencyProject.tasks.named(" classes" )
121- .map { classes ->
122- classes.taskDependencies.getDependencies(classes)
121+ val project = it.dependencyProject
122+ if (project.plugins.hasPlugin(" org.jetbrains.kotlin.multiplatform" )) {
123+ dependsOn(project.tasks.named(" jvmMainClasses" ))
124+ from(project.buildDir.toPath() / " classes" / " kotlin" / " jvm" / " main" ) {
125+ include(" **/*.class" )
123126 }
124-
125- from(classes)
127+ } else {
128+ dependsOn(project.tasks.named(" classes" ))
129+ from(project.buildDir.toPath() / " classes" / " java" / " main" ) {
130+ include(" **/*.class" )
131+ }
132+ }
126133 }
127134 }
128135
You can’t perform that action at this time.
0 commit comments