Skip to content

Commit

Permalink
build: use classifiers instead of artifact id
Browse files Browse the repository at this point in the history
  • Loading branch information
silenium-dev committed Jul 24, 2024
1 parent 9d1d657 commit 97fd3ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ val bundleJar by tasks.registering(Jar::class) {
include("*.dylib")
into("natives/$platform/")
}
archiveClassifier = platform
}

val zipBuild by tasks.registering(Zip::class) {
Expand All @@ -67,14 +68,15 @@ val zipBuild by tasks.registering(Zip::class) {
include("lib/**")
include("share/**")
}
archiveClassifier = platform
}

publishing {
publications {
create<MavenPublication>("native${platform.split("-").joinToString("") { it.capitalized() }}") {
artifact(bundleJar)
artifact(zipBuild)
artifactId = "ffmpeg-${platform}"
artifactId = "ffmpeg-natives"
}
}

Expand Down

0 comments on commit 97fd3ca

Please sign in to comment.