File tree Expand file tree Collapse file tree 3 files changed +25
-10
lines changed Expand file tree Collapse file tree 3 files changed +25
-10
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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+
2132tasks.test {
2233 useJUnitPlatform()
2334}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments