Skip to content

Commit 2e851b0

Browse files
committed
build: try fixing native-all dependency
1 parent 8f76e59 commit 2e851b0

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

build.gradle.kts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ plugins {
1313
`maven-publish`
1414
}
1515

16-
repositories {
17-
maven("https://reposilite.silenium.dev/releases") {
18-
name = "reposilite"
19-
}
20-
mavenCentral()
21-
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
22-
google()
23-
}
24-
2516
allprojects {
2617
apply<MavenPublishPlugin>()
2718
apply<BasePlugin>()
2819

20+
repositories {
21+
maven("https://reposilite.silenium.dev/releases") {
22+
name = "reposilite"
23+
}
24+
mavenCentral()
25+
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
26+
google()
27+
}
28+
2929
this.group = "dev.silenium.compose.gl"
3030
this.version = findProperty("deploy.version") as String? ?: "0.0.0-SNAPSHOT"
3131

native-all/build.gradle.kts

Lines changed: 2 additions & 6 deletions
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-platform`
6+
`java-library`
77
}
88

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

17-
javaPlatform {
18-
allowDependencies()
19-
}
20-
2117
dependencies {
2218
api(libs.jni.utils)
2319
supportedPlatforms.forEach { platform ->
@@ -29,7 +25,7 @@ publishing {
2925
publications {
3026
create<MavenPublication>("nativesAll") {
3127
artifactId = allNativesArtifactId
32-
from(components["javaPlatform"])
28+
from(components["java"])
3329
}
3430
}
3531
}

0 commit comments

Comments
 (0)