diff --git a/build.gradle b/build.gradle index dcb44ed..0d30fbd 100644 --- a/build.gradle +++ b/build.gradle @@ -71,6 +71,13 @@ task smokeTest(dependsOn: [ 'reboundDistJar' ]) +// Configure gradle.properties to do maven builds +if (!project.hasProperty('sonatypeRepo') || + !project.hasProperty('sonatypeUsername') || + !project.hasProperty('sonatypePassword')) { + return; +} + // Maven Push apply plugin: 'maven' diff --git a/gradle.properties b/gradle.properties deleted file mode 100644 index 5686c0d..0000000 --- a/gradle.properties +++ /dev/null @@ -1,7 +0,0 @@ -signing.keyId=[KEYID] -signing.password=[KEYPASS] -signing.secretKeyRingFile=/path/to/secring.gpg - -sonatypeRepo=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -sonatypeUsername=[SONOATYPE USER] -sonatypePassword=[SONATYPE PASS]