Add group and version properties for nexus publishing plugin

This commit is contained in:
thunderbiscuit
2022-10-24 10:19:56 -04:00
parent f820b4fd6f
commit 5991b07385
6 changed files with 17 additions and 6 deletions

View File

@@ -2,6 +2,13 @@ plugins {
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
// These properties are required here so that the nexus publish-plugin
// finds a staging profile with the correct group (group is otherwise set as "")
// and knows whether to publish to a SNAPSHOT repository or not
// https://github.com/gradle-nexus/publish-plugin#applying-the-plugin
group = "org.bitcoindevkit"
version = "0.10.0"
nexusPublishing {
repositories {
create("sonatype") {

View File

@@ -49,13 +49,11 @@ afterEvaluate {
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "org.bitcoindevkit"
artifactId = "bdk-jvm"
version = "0.10.0-SNAPSHOT"
from(components["java"])
pom {
name.set("bdk-jvm")
description.set("Bitcoin Dev Kit Kotlin language bindings.")