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 {
|
||||
group = "fr.acinq.secp256k1"
|
||||
version = "0.16.0-SNAPSHOT"
|
||||
version = "frost-SNAPSHOT"
|
||||
|
||||
repositories {
|
||||
google()
|
||||
@ -58,6 +58,7 @@ kotlin {
|
||||
secp256k1CInterop("host")
|
||||
}
|
||||
|
||||
if (currentOs.isMacOsX) {
|
||||
macosX64 {
|
||||
secp256k1CInterop("host")
|
||||
}
|
||||
@ -77,6 +78,8 @@ kotlin {
|
||||
iosSimulatorArm64 {
|
||||
secp256k1CInterop("ios")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
sourceSets.all {
|
||||
languageSettings.optIn("kotlin.RequiresOptIn")
|
||||
|
@ -1,14 +1,26 @@
|
||||
import org.gradle.internal.os.OperatingSystem
|
||||
|
||||
plugins {
|
||||
`java-library`
|
||||
id("org.jetbrains.dokka")
|
||||
`maven-publish`
|
||||
}
|
||||
val currentOs = OperatingSystem.current()
|
||||
|
||||
dependencies {
|
||||
val publishModeEnabled = rootProject.hasProperty("publishMode") // TODO: Add a -PpublishMode argument to the build script specifically for publishing a release (not when publishing local).
|
||||
println("publishModeEnabled: $publishModeEnabled")
|
||||
|
||||
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 {
|
||||
publications {
|
||||
|
Loading…
x
Reference in New Issue
Block a user