diff --git a/README.md b/README.md index 46d0a46..a3fae0c 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Add the dependency to your `build.gradle.kts`: ```kotlin dependencies { - implementation("xyz.atheon:verity:0.3.0") + implementation("xyz.atheon:verity:0.0.2") } ``` diff --git a/sdks/kotlin/build.gradle.kts b/sdks/kotlin/build.gradle.kts index 04539c8..776a5cd 100644 --- a/sdks/kotlin/build.gradle.kts +++ b/sdks/kotlin/build.gradle.kts @@ -2,6 +2,8 @@ plugins { id("com.android.library") version "8.5.0" id("org.jetbrains.kotlin.android") version "1.9.24" id("maven-publish") + signing + id("com.gradleup.nmcp") version "1.4.4" } val publishedAbis = listOf("arm64-v8a") @@ -63,11 +65,51 @@ publishing { create("release") { groupId = "xyz.atheon" artifactId = "verity" - version = file("../../VERSION").readText().trim() + version = "0.0.2" afterEvaluate { from(components["release"]) } + + pom { + name.set("Verity") + description.set("Zero-knowledge proof SDK for Android — ProveKit and Barretenberg backends") + url.set("https://github.com/atheonxyz/verity") + + licenses { + license { + name.set("Proprietary") + url.set("https://github.com/atheonxyz/verity") + } + } + + developers { + developer { + id.set("atheon") + name.set("Atheon") + email.set("rose@atheon.xyz") + } + } + + scm { + connection.set("scm:git:git://github.com/atheonxyz/verity.git") + developerConnection.set("scm:git:ssh://github.com/atheonxyz/verity.git") + url.set("https://github.com/atheonxyz/verity") + } + } } } + +} + +signing { + useGpgCmd() + sign(publishing.publications["release"]) +} + +nmcp { + publishAllPublicationsToCentralPortal { + username.set(findProperty("mavenCentralUsername") as String? ?: "") + password.set(findProperty("mavenCentralPassword") as String? ?: "") + } }