Add documentation on how to skip signing task for local Maven

This commit is contained in:
thunderbiscuit 2022-03-15 13:47:08 -04:00
parent a1b4d66f47
commit 4e4d2c64b4
No known key found for this signature in database
GPG Key ID: 88253696EB836462

View File

@ -21,7 +21,6 @@ dependencies {
implementation 'org.bitcoindevkit:bdk-android:0.4.0' implementation 'org.bitcoindevkit:bdk-android:0.4.0'
} }
``` ```
You may then import and use the `org.bitcoindevkit` library in your Kotlin code. For example: You may then import and use the `org.bitcoindevkit` library in your Kotlin code. For example:
@ -108,6 +107,12 @@ _Note that Kotlin version `1.6.10` or later is required to build the library._
./gradlew :android:publishToMavenLocal ./gradlew :android:publishToMavenLocal
``` ```
Note that if you do not have gpg keys set up to sign the publication, the task will fail. If you wish to publish to your local Maven repository for local testing without signing the release, you can do so by excluding the `signMavenPublication` subtask like so:
```shell
./gradlew :jvm:publishToMavenLocal --exclude-task signMavenPublication
./gradlew :android:publishToMavenLocal --exclude-task signMavenPublication
```
### Publish to maven central with [Gradle Nexus Publish Plugin] (project maintainers only) ### Publish to maven central with [Gradle Nexus Publish Plugin] (project maintainers only)
1. Set your `~/.gradle/gradle.properties` signing key values and SONATYPE login 1. Set your `~/.gradle/gradle.properties` signing key values and SONATYPE login