We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b396715 commit f8923b6Copy full SHA for f8923b6
jni/android/build.gradle.kts
@@ -48,9 +48,7 @@ android {
48
}
49
50
publishing {
51
- singleVariant("release") {
52
- withSourcesJar()
53
- }
+ singleVariant("release")
54
55
56
@@ -59,3 +57,19 @@ afterEvaluate {
59
57
it.dependsOn(":native:buildSecp256k1Android")
60
58
61
+
+afterEvaluate {
62
+ publishing {
63
+ publications {
64
+ create<MavenPublication>("android") {
65
+ artifactId = "secp256k1-kmp-jni-android"
66
+ from(components["release"])
67
+ val sourcesJar = task<Jar>("sourcesJar") {
68
+ archiveClassifier.set("sources")
69
+ from(android.sourceSets["main"].java.srcDirs)
70
+ }
71
+ artifact(sourcesJar)
72
73
74
75
+}
0 commit comments