* Each native library is in its own jar. Got rid of cross compilation. The project is `secp256k1` and not `secp256k1-kmp`. * Updated CI to use all 3 OS VMs Co-authored-by: Salomon BRYS <salomon@kodein.net>
38 lines
837 B
Plaintext
38 lines
837 B
Plaintext
plugins {
|
|
kotlin("jvm")
|
|
`maven-publish`
|
|
}
|
|
|
|
kotlin {
|
|
explicitApi()
|
|
}
|
|
|
|
dependencies {
|
|
api(rootProject)
|
|
implementation(kotlin("stdlib-jdk8"))
|
|
}
|
|
|
|
val generateHeaders by tasks.creating(JavaCompile::class) {
|
|
group = "build"
|
|
classpath = sourceSets["main"].compileClasspath
|
|
destinationDir = file("${buildDir}/generated/jni")
|
|
source = sourceSets["main"].java
|
|
options.compilerArgs = listOf(
|
|
"-h", file("${buildDir}/generated/jni").absolutePath,
|
|
"-d", file("${buildDir}/generated/jni-tmp").absolutePath
|
|
)
|
|
// options.verbose = true
|
|
doLast {
|
|
delete(file("${buildDir}/generated/jni-tmp"))
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("jvm") {
|
|
artifactId = "secp256k1-jni-common"
|
|
from(components["java"])
|
|
}
|
|
}
|
|
}
|