Add group and version properties for nexus publishing plugin
This commit is contained in:
parent
f820b4fd6f
commit
5991b07385
3
.github/workflows/publish-android.yaml
vendored
3
.github/workflows/publish-android.yaml
vendored
@ -57,5 +57,4 @@ jobs:
|
|||||||
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.NEXUS_PASSWORD }}
|
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.NEXUS_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
cd bdk-android
|
cd bdk-android
|
||||||
./gradlew publishToSonatype
|
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
|
||||||
# ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
|
|
||||||
|
3
.github/workflows/publish-jvm.yaml
vendored
3
.github/workflows/publish-jvm.yaml
vendored
@ -98,5 +98,4 @@ jobs:
|
|||||||
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.NEXUS_PASSWORD }}
|
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.NEXUS_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
cd bdk-jvm
|
cd bdk-jvm
|
||||||
./gradlew publishToSonatype
|
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
|
||||||
# ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
|
|
||||||
|
@ -11,6 +11,13 @@ plugins {
|
|||||||
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
|
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 {
|
nexusPublishing {
|
||||||
repositories {
|
repositories {
|
||||||
create("sonatype") {
|
create("sonatype") {
|
||||||
|
@ -58,6 +58,7 @@ afterEvaluate {
|
|||||||
groupId = "org.bitcoindevkit"
|
groupId = "org.bitcoindevkit"
|
||||||
artifactId = "bdk-android"
|
artifactId = "bdk-android"
|
||||||
version = "0.10.0-SNAPSHOT"
|
version = "0.10.0-SNAPSHOT"
|
||||||
|
|
||||||
from(components["release"])
|
from(components["release"])
|
||||||
pom {
|
pom {
|
||||||
name.set("bdk-android")
|
name.set("bdk-android")
|
||||||
|
@ -2,6 +2,13 @@ plugins {
|
|||||||
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
|
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 {
|
nexusPublishing {
|
||||||
repositories {
|
repositories {
|
||||||
create("sonatype") {
|
create("sonatype") {
|
||||||
|
@ -49,13 +49,11 @@ afterEvaluate {
|
|||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("maven") {
|
create<MavenPublication>("maven") {
|
||||||
|
|
||||||
groupId = "org.bitcoindevkit"
|
groupId = "org.bitcoindevkit"
|
||||||
artifactId = "bdk-jvm"
|
artifactId = "bdk-jvm"
|
||||||
version = "0.10.0-SNAPSHOT"
|
version = "0.10.0-SNAPSHOT"
|
||||||
|
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
|
|
||||||
pom {
|
pom {
|
||||||
name.set("bdk-jvm")
|
name.set("bdk-jvm")
|
||||||
description.set("Bitcoin Dev Kit Kotlin language bindings.")
|
description.set("Bitcoin Dev Kit Kotlin language bindings.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user