New publication configuration (#14)

* add Dokka + align POM metadatas with sonatype requirements

* update snapshot CI

* update JNI publication

* update CI scripts

* remove maven-metadata-local.xml

* add snapshot publication with maven-publish plugin
This commit is contained in:
Romain Boisselle
2021-03-11 17:53:50 +01:00
committed by GitHub
parent 7d22d835a5
commit f493edfdfb
11 changed files with 196 additions and 57 deletions

View File

@@ -1,5 +1,6 @@
plugins {
kotlin("jvm")
id("org.jetbrains.dokka")
`maven-publish`
}
@@ -25,6 +26,10 @@ publishing {
val pub = create<MavenPublication>("jvm") {
artifactId = "secp256k1-kmp-jni-jvm-mingw"
from(components["java"])
val sourcesJar = task<Jar>("sourcesJar") {
archiveClassifier.set("sources")
}
artifact(sourcesJar)
}
if (!org.gradle.internal.os.OperatingSystem.current().isWindows) {
tasks.withType<AbstractPublishToMaven>().all { onlyIf { publication != pub } }