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,6 +1,9 @@
import org.jetbrains.dokka.Platform
plugins {
id("com.android.library")
kotlin("android")
id("org.jetbrains.dokka")
`maven-publish`
}
@@ -53,6 +56,11 @@ afterEvaluate {
create<MavenPublication>("android") {
artifactId = "secp256k1-kmp-jni-android"
from(components["release"])
val sourcesJar = task<Jar>("sourcesJar") {
archiveClassifier.set("sources")
from(android.sourceSets["main"].java.srcDirs)
}
artifact(sourcesJar)
}
}
}