Commit fef004ce authored by Arne Köhn's avatar Arne Köhn

Build successfully without upload configured.

Previously, every build failed if no user and password for uploading to central was defined in the user's gradle config.
parent a32d0b62
......@@ -39,22 +39,37 @@ artifacts {
archives javadocJar, sourcesJar
}
// Notes: gpg2 needs some work:
// Notes: signing with gpg2 needs some work:
// gpg --homedir ~/.gnupg-software-signing --full-gen-key
// gpg --homedir ~/.gnupg-software-signing --export-key XXXXXXX > secring.gpg
// get short id:
// gpg --homedir ~/.gnupg-software-signing --list-secret-keys --keyid-format short
// then set everything in ~/.gradle/gradle.properties:
// signing.keyId=8AAA8FD9
// signing.secretKeyRingFile=/home/arne/.gnupg-software-signing/secring.gpg
// signing.password=
signing {
sign configurations.archives
}
// don't have zip files around for upload
// don't have zip and tar files around for upload
configurations.archives.with {
artifacts.remove artifacts.find { it.archiveTask.is distZip }
artifacts.remove artifacts.find { it.archiveTask.is distTar }
}
// ossrhPassword and ossrhUsername are defined in ~/.gradle/gradle.properties
// set default values if they are not defined.
if (!project.hasProperty("ossrhUsername")) {
ext.ossrhUsername = "empty"
}
if (!project.hasProperty("ossrhPassword")) {
ext.ossrhPassword = "empty"
}
uploadArchives {
repositories {
mavenDeployer {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment