Skip to content

Commit ebc4acb

Browse files
committed
Update Publication.kt
1 parent 4eac670 commit ebc4acb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

buildSrc/src/main/java/Publication.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,16 @@ fun DistributionContainer.configureForMultiplatform(project: Project, buildPubli
3939
rename { "pom-default.xml" }
4040
}
4141

42+
// Rename the main jar to ...-all.jar due to craft
43+
if (distribution.name == "main") {
44+
from("$basePath$sep$projectName-$version.jar") {
45+
rename { "$projectName-$version-all.jar" }
46+
}
47+
}
48+
4249
from(basePath) {
4350
exclude("*.pom")
51+
exclude("$projectName-$version.jar")
4452
}
4553
}
4654
}

0 commit comments

Comments
 (0)