From 3a70caa70dfa9d6baaa7bf3eab3555b8997b067e Mon Sep 17 00:00:00 2001 From: Yusuke Iwaki Date: Sat, 16 Dec 2017 12:45:29 +0900 Subject: [PATCH] define 'override' param --- .../com/novoda/gradle/release/BintrayConfiguration.groovy | 1 + .../groovy/com/novoda/gradle/release/PropertyFinder.groovy | 4 ++++ .../groovy/com/novoda/gradle/release/PublishExtension.groovy | 1 + 3 files changed, 6 insertions(+) diff --git a/core/src/main/groovy/com/novoda/gradle/release/BintrayConfiguration.groovy b/core/src/main/groovy/com/novoda/gradle/release/BintrayConfiguration.groovy index dd6530b..f6bbea2 100644 --- a/core/src/main/groovy/com/novoda/gradle/release/BintrayConfiguration.groovy +++ b/core/src/main/groovy/com/novoda/gradle/release/BintrayConfiguration.groovy @@ -21,6 +21,7 @@ class BintrayConfiguration { key = propertyFinder.getBintrayKey() publish = extension.autoPublish dryRun = propertyFinder.getDryRun() + override = propertyFinder.getOverride() publications = extension.publications ?: project.plugins.hasPlugin('com.android.library') ? ['release'] : [ 'maven' ] diff --git a/core/src/main/groovy/com/novoda/gradle/release/PropertyFinder.groovy b/core/src/main/groovy/com/novoda/gradle/release/PropertyFinder.groovy index 6e5f00c..b0709df 100644 --- a/core/src/main/groovy/com/novoda/gradle/release/PropertyFinder.groovy +++ b/core/src/main/groovy/com/novoda/gradle/release/PropertyFinder.groovy @@ -24,6 +24,10 @@ class PropertyFinder { getBoolean(project, 'dryRun', extension.dryRun) } + def getOverride() { + getBoolean(project, 'override', extension.override) + } + def getPublishVersion() { getString(project, 'publishVersion', extension.publishVersion ?: extension.version) } diff --git a/core/src/main/groovy/com/novoda/gradle/release/PublishExtension.groovy b/core/src/main/groovy/com/novoda/gradle/release/PublishExtension.groovy index da2754f..bce431e 100644 --- a/core/src/main/groovy/com/novoda/gradle/release/PublishExtension.groovy +++ b/core/src/main/groovy/com/novoda/gradle/release/PublishExtension.groovy @@ -38,6 +38,7 @@ class PublishExtension { String bintrayUser = '' String bintrayKey = '' boolean dryRun = true + boolean override = false String[] publications