We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7c3528 commit d8bbfc5Copy full SHA for d8bbfc5
native-all/build.gradle.kts
@@ -3,7 +3,7 @@ import dev.silenium.libs.jni.Platform.Arch
3
import dev.silenium.libs.jni.Platform.OS
4
5
plugins {
6
- `java-library`
+ `java-platform`
7
}
8
9
val supportedPlatforms = listOf(
@@ -14,7 +14,12 @@ val supportedPlatforms = listOf(
14
)
15
val libName = rootProject.name
16
17
+javaPlatform {
18
+ allowDependencies()
19
+}
20
+
21
dependencies {
22
+ api(libs.jni.utils)
23
supportedPlatforms.forEach { platform ->
24
api("${project.group}:${nativeArtifactId(platform)}:${project.version}")
25
@@ -24,6 +29,7 @@ publishing {
29
publications {
30
create<MavenPublication>("nativesAll") {
26
31
artifactId = allNativesArtifactId
32
+ from(components["javaPlatform"])
27
33
28
34
35
0 commit comments