@@ -8,10 +8,11 @@ Publishing
88To publish to Maven use
99
1010```
11- ./gradlew clean dist assemble publish -PbuildProfile={8|11} -PcredentialsPassphrase=<credentials password >
11+ ./gradlew clean dist assemble publish -PbuildProfile={8|11} -PcentralPassword=<value >
1212```
13- Where ` <credentials password> ` is the password used to add the credentials (see
14- also below).
13+
14+ This command will prompt for you GPG key password if it's not already cached in
15+ your current session.
1516
1617The ` assemble ` task is not strictly necessary, but will also generate the ` dist `
1718zip and sign it.
@@ -27,23 +28,21 @@ To be able to deploy, you need the following:
2728a ` <homedir>/.gradle/gradle.properties ` with the following properties:
2829
2930```
30- signing.keyId=<gpg key id>
31- signing.secretKeyRingFile=<path to your secring.gpg>
31+ signing.gnupg.keyName=<short keyid>
3232
3333centralUsername=<Central Portal usertoken name>
34+ # Only needed if you don't want to specify -PcentralPassword=... on commandline
35+ centralPassword=<your Central Portal usertoken password>
3436```
3537
36- See also [ Gradle: The Signing Plugin] ( https://docs.gradle.org/current/userguide/signing_plugin.html ) .
37-
38- In addition, you need to set the following credentials
38+ (It's possible ` signing.gnupg.keyName ` also accepts long key-ids, we haven't checked.)
3939
40- ```
41- ./gradlew addCredentials --key signing.password --value <your secret key password> -PcredentialsPassphrase=<credentials password>
42- ./gradlew addCredentials --key centralPassword --value <your Central Portal usertoken password> -PcredentialsPassphrase=<credentials password>
43- ```
40+ Make sure the file is only readable and writable by you (chmod 600). If the
41+ password contains backslashes, make sure to escape them by doubling. If the
42+ password contains characters not in ISO 8859-1, make sure to use a Java Unicode
43+ escape.
4444
45- See https://github.com/etiennestuder/gradle-credentials-plugin for details on
46- credentials.
45+ See also [ Gradle: The Signing Plugin] ( https://docs.gradle.org/current/userguide/signing_plugin.html ) .
4746
4847## License Notice
4948
0 commit comments