File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
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.13 "
8+ version = " 1.0.14 "
99
1010repositories {
1111 mavenCentral()
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import org.gradle.api.Plugin
55import org.gradle.api.Project
66import org.gradle.api.artifacts.Dependency
77import org.gradle.api.artifacts.ProjectDependency
8+ import org.gradle.api.file.RelativePath
89import org.gradle.api.provider.Provider
910import org.gradle.api.publish.PublishingExtension
1011import org.gradle.api.publish.maven.MavenPublication
@@ -117,17 +118,20 @@ private fun Project.configureTasks(serverDependency: Provider<Dependency>) {
117118 configurations.getByName(" runtimeClasspath" )
118119 .allDependencies
119120 .filterIsInstance<ProjectDependency >()
120- .forEach {
121- val project = it .dependencyProject
121+ .forEach { dependency ->
122+ val project = dependency .dependencyProject
122123 if (project.plugins.hasPlugin(" org.jetbrains.kotlin.multiplatform" )) {
123124 dependsOn(project.tasks.named(" jvmMainClasses" ))
124125 from(project.buildDir.toPath() / " classes" / " kotlin" / " jvm" / " main" ) {
125126 include(" **/*.class" )
126127 }
127128 } else {
128129 dependsOn(project.tasks.named(" classes" ))
129- from(project.buildDir.toPath() / " classes" / " java" / " main" ) {
130- include(" **/*.class" )
130+ from(project.buildDir.toPath() / " classes" ) {
131+ include(" **/main/**/*.class" )
132+ eachFile {
133+ path = path.substringAfter(" main/" )
134+ }
131135 }
132136 }
133137 }
You can’t perform that action at this time.
0 commit comments