Skip to content

Commit c605d96

Browse files
chore: fix publish by adding -all.jar file (#167)
* fix publish by adding -all.jar) --------- Co-authored-by: Sentry Github Bot <[email protected]>
1 parent 2e208b2 commit c605d96

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
@@ -16,6 +16,14 @@ fun DistributionContainer.configureForMultiplatform(project: Project) {
1616
from("build${sep}publications${sep}kotlinMultiplatform") {
1717
renameModule(project.name, version = version)
1818
}
19+
// The current Kotlin version doesn't generate this *-all.jar anymore.
20+
// This is a placeholder for backwards compatibility with craft until we fix it there directly.
21+
from("build${sep}libs") {
22+
include("${project.name}-$version")
23+
rename {
24+
it.replace("$version", "$version-all")
25+
}
26+
}
1927
from("build${sep}kotlinToolingMetadata") {
2028
rename {
2129
it.replace("kotlin-tooling-metadata.json", "${project.name}-$version-kotlin-tooling-metadata.json")

0 commit comments

Comments
 (0)