diff --git a/publish.sh b/publish.sh index c649f0b..a6da277 100755 --- a/publish.sh +++ b/publish.sh @@ -3,12 +3,10 @@ #echo $GPG_KEY_CONTENTS | base64 -d > /secret.gpg ./gradlew -PnewVersion=0.0.4 eoandroidconcurrency:clean ./gradlew -PnewVersion=0.0.4 eoandroidconcurrency:assemble -./gradlew -PnewVersion=0.0.4 eoandroidconcurrency:publishReleasePublicationToSonatypeRepository -#./gradlew closeAndReleaseRepository -#./gradlew eoandroidworkmanager:clean -#./gradlew eoandroidworkmanager:assemble -#./gradlew eoandroidworkmanager:publishReleasePublicationToSonatypeRepository +./gradlew -PnewVersion=0.0.4 eoandroidconcurrency:publish eoandroidconcurrency:closeAndReleaseRepository +#./gradlew -PnewVersion=0.0.4 eoandroidworkmanager:clean +#./gradlew -PnewVersion=0.0.4 eoandroidworkmanager:assemble +#./gradlew -PnewVersion=0.0.4 eoandroidworkmanager:publish eoandroidworkmanager:closeAndReleaseRepository ./gradlew -PnewVersion=0.0.4 eorest:clean ./gradlew -PnewVersion=0.0.4 eorest:jar -./gradlew -PnewVersion=0.0.4 eorest:publishReleasePublicationToSonatypeRepository -./gradlew publish closeAndReleaseRepository +./gradlew -PnewVersion=0.0.4 eorest:publish eorest:closeAndReleaseRepository diff --git a/publish/publish_android_library.gradle b/publish/publish_android_library.gradle index 9f0c124..b8a303f 100644 --- a/publish/publish_android_library.gradle +++ b/publish/publish_android_library.gradle @@ -40,16 +40,14 @@ ext["ossrhUsername"] = '' ext["ossrhPassword"] = '' ext["ossStagingProfileId"] = '' -File secretPropsFile = project.rootProject.file('local.properties') +final File secretPropsFile = project.rootProject.file('local.properties') if (secretPropsFile.exists()) { - println "Found secret props file, loading props" - Properties p = new Properties() + final Properties p = new Properties() p.load(new FileInputStream(secretPropsFile)) p.each { name, value -> ext[name] = value } } else { - println "No props file, loading env vars" ext["signing.keyId"] = System.getenv('SIGNING_KEY_ID') ext["signing.password"] = System.getenv('SIGNING_PASSWORD') ext["signing.secretKeyRingFile"] = System.getenv('SIGNING_SECRET_KEY_RING_FILE') @@ -64,8 +62,6 @@ if (project.hasProperty('newVersion')) { project.version = '0.0.1' } -println "Publishing ${project.getName()} with version " + project.version - publishing { publications { release(MavenPublication) { diff --git a/publish/publish_kotlin_library.gradle b/publish/publish_kotlin_library.gradle index e80c603..7b76447 100644 --- a/publish/publish_kotlin_library.gradle +++ b/publish/publish_kotlin_library.gradle @@ -40,16 +40,14 @@ ext["ossrhUsername"] = '' ext["ossrhPassword"] = '' ext["ossStagingProfileId"] = '' -File secretPropsFile = project.rootProject.file('local.properties') +final File secretPropsFile = project.rootProject.file('local.properties') if (secretPropsFile.exists()) { - println "Found secret props file, loading props" - Properties p = new Properties() + final Properties p = new Properties() p.load(new FileInputStream(secretPropsFile)) p.each { name, value -> ext[name] = value } } else { - println "No props file, loading env vars" ext["signing.keyId"] = System.getenv('SIGNING_KEY_ID') ext["signing.password"] = System.getenv('SIGNING_PASSWORD') ext["signing.secretKeyRingFile"] = System.getenv('SIGNING_SECRET_KEY_RING_FILE') @@ -64,8 +62,6 @@ if (project.hasProperty('newVersion')) { project.version = '0.0.1' } -println "Publishing ${project.getName()} with version " + project.version - publishing { publications { release(MavenPublication) {