Skip to content

Commit 28b8565

Browse files
committed
let's just switch this up to make life easier
1 parent defea62 commit 28b8565

File tree

3 files changed

+25
-10
lines changed

3 files changed

+25
-10
lines changed

build.gradle.kts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,5 @@ subprojects {
2222
}
2323
}
2424
}
25-
publications {
26-
register("maven", MavenPublication::class) {
27-
groupId = "xyz.bluspring"
28-
artifactId = "UnityTranslateLib"
29-
version = "${rootProject.property("unitytranslate_version")}"
30-
from(components.getByName("java"))
31-
}
32-
}
3325
}
3426
}

library/build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ dependencies {
1818
testRuntimeOnly("org.slf4j:slf4j-simple:2.0.16")
1919
}
2020

21+
publishing {
22+
publications {
23+
register("maven", MavenPublication::class) {
24+
groupId = "xyz.bluspring"
25+
artifactId = "UnityTranslateLib"
26+
version = "${rootProject.property("unitytranslate_version")}"
27+
from(components.getByName("java"))
28+
}
29+
}
30+
}
31+
2132
tasks.test {
2233
useJUnitPlatform()
2334
}

native/build.gradle.kts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,19 @@ tasks {
242242
jar {
243243
val target = RUST_TARGETS.first { it.isHost() }
244244

245-
archiveBaseName.set("UnityTranslateLib")
246-
archiveClassifier.set("natives-${target.systemName}-${target.architecture}")
245+
archiveBaseName.set("UnityTranslateLib-natives-${target.systemName}-${target.architecture}")
246+
}
247+
}
248+
249+
publishing {
250+
val target = RUST_TARGETS.first { it.isHost() }
251+
252+
publications {
253+
register("maven", MavenPublication::class) {
254+
groupId = "xyz.bluspring"
255+
artifactId = "UnityTranslateLib-natives-${target.systemName}-${target.architecture}"
256+
version = "${rootProject.property("unitytranslate_version")}"
257+
from(components.getByName("java"))
258+
}
247259
}
248260
}

0 commit comments

Comments
 (0)