Skip to content

Commit b99c9b1

Browse files
committed
Provide default value for ossrhUsername so build doesn't break
Added instructions how to setup deployment
1 parent 64809d2 commit b99c9b1

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

devdoc/deploy.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,26 @@ Deploying
44
To deploy to Maven use
55

66
```
7-
gradlew uploadArchives -PcredentialsPassphrase=<password>
7+
gradlew uploadArchives -PcredentialsPassphrase=<credentials password>
8+
```
9+
10+
Where `<credentials password>` is the password used to add the credentials (see
11+
also below).
12+
13+
To be able to deploy, you need the following:
14+
15+
a `<homedir>/.gradle/gradle.properties` with the following properties:
16+
17+
```
18+
signing.keyId=<gpg key id>
19+
signing.secretKeyRingFile=<path to your secring.gpg>
20+
21+
ossrhUsername=<sonatype OSSRH username>
22+
```
23+
24+
In addition, you need to set the following credentials
25+
26+
```
27+
./gradlew addCredentials --key signing.password --value <your secret key password> -PcredentialsPassphrase=<credentials password>
28+
./gradlew addCredentials --key ossrhPassword --value <your sonatyp OSSRH password> -PcredentialsPassphrase=<credentials password>
829
```

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Default value so the build script doesn't break
2+
ossrhUsername=don't break the build

0 commit comments

Comments
 (0)