Publish frost-snapshot and limit which versions should be secp256k1-kmp-jni-jvm dependencies.
This commit is contained in:
parent
83dff95ece
commit
c368691bf9
@ -22,7 +22,7 @@ buildscript {
|
|||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
group = "fr.acinq.secp256k1"
|
group = "fr.acinq.secp256k1"
|
||||||
version = "0.16.0-SNAPSHOT"
|
version = "frost-SNAPSHOT"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
@ -58,25 +58,28 @@ kotlin {
|
|||||||
secp256k1CInterop("host")
|
secp256k1CInterop("host")
|
||||||
}
|
}
|
||||||
|
|
||||||
macosX64 {
|
if (currentOs.isMacOsX) {
|
||||||
secp256k1CInterop("host")
|
macosX64 {
|
||||||
|
secp256k1CInterop("host")
|
||||||
|
}
|
||||||
|
|
||||||
|
macosArm64 {
|
||||||
|
secp256k1CInterop("host")
|
||||||
|
}
|
||||||
|
|
||||||
|
iosX64 {
|
||||||
|
secp256k1CInterop("ios")
|
||||||
|
}
|
||||||
|
|
||||||
|
iosArm64 {
|
||||||
|
secp256k1CInterop("ios")
|
||||||
|
}
|
||||||
|
|
||||||
|
iosSimulatorArm64 {
|
||||||
|
secp256k1CInterop("ios")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
macosArm64 {
|
|
||||||
secp256k1CInterop("host")
|
|
||||||
}
|
|
||||||
|
|
||||||
iosX64 {
|
|
||||||
secp256k1CInterop("ios")
|
|
||||||
}
|
|
||||||
|
|
||||||
iosArm64 {
|
|
||||||
secp256k1CInterop("ios")
|
|
||||||
}
|
|
||||||
|
|
||||||
iosSimulatorArm64 {
|
|
||||||
secp256k1CInterop("ios")
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets.all {
|
sourceSets.all {
|
||||||
languageSettings.optIn("kotlin.RequiresOptIn")
|
languageSettings.optIn("kotlin.RequiresOptIn")
|
||||||
|
@ -1,13 +1,25 @@
|
|||||||
|
import org.gradle.internal.os.OperatingSystem
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`java-library`
|
`java-library`
|
||||||
id("org.jetbrains.dokka")
|
id("org.jetbrains.dokka")
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
}
|
}
|
||||||
|
val currentOs = OperatingSystem.current()
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":jni:jvm:darwin"))
|
val publishModeEnabled = rootProject.hasProperty("publishMode") // TODO: Add a -PpublishMode argument to the build script specifically for publishing a release (not when publishing local).
|
||||||
api(project(":jni:jvm:linux"))
|
println("publishModeEnabled: $publishModeEnabled")
|
||||||
api(project(":jni:jvm:mingw"))
|
|
||||||
|
if (publishModeEnabled || currentOs.isMacOsX) {
|
||||||
|
api(project(":jni:jvm:darwin"))
|
||||||
|
}
|
||||||
|
if (publishModeEnabled || currentOs.isLinux) {
|
||||||
|
api(project(":jni:jvm:linux"))
|
||||||
|
}
|
||||||
|
if (publishModeEnabled || currentOs.isWindows) {
|
||||||
|
api(project(":jni:jvm:mingw"))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user