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