Skip to content

Commit d8bbfc5

Browse files
committed
build: fix native-all publication not containing any dependencies
1 parent f7c3528 commit d8bbfc5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

native-all/build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import dev.silenium.libs.jni.Platform.Arch
33
import dev.silenium.libs.jni.Platform.OS
44

55
plugins {
6-
`java-library`
6+
`java-platform`
77
}
88

99
val supportedPlatforms = listOf(
@@ -14,7 +14,12 @@ val supportedPlatforms = listOf(
1414
)
1515
val libName = rootProject.name
1616

17+
javaPlatform {
18+
allowDependencies()
19+
}
20+
1721
dependencies {
22+
api(libs.jni.utils)
1823
supportedPlatforms.forEach { platform ->
1924
api("${project.group}:${nativeArtifactId(platform)}:${project.version}")
2025
}
@@ -24,6 +29,7 @@ publishing {
2429
publications {
2530
create<MavenPublication>("nativesAll") {
2631
artifactId = allNativesArtifactId
32+
from(components["javaPlatform"])
2733
}
2834
}
2935
}

0 commit comments

Comments
 (0)