From 673ef1f8c02a3e966f30d528c0cad63ca7ae2b2c Mon Sep 17 00:00:00 2001
From: Robert Fink <rf@robertfink.de>
Date: Thu, 19 May 2016 10:31:02 +0100
Subject: [PATCH] Upgrade bintray plugin; automatically publish bintray
 artifacts (#67)

---
 build.gradle                             |  2 +-
 gradle-baseline-java-config/build.gradle | 15 ++++++++-------
 gradle-baseline-java/build.gradle        |  1 +
 3 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/build.gradle b/build.gradle
index d9f2f6b39..87e6d647d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -7,7 +7,7 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
+        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
         classpath 'com.gradle.publish:plugin-publish-plugin:0.9.1'
         classpath 'com.palantir:gradle-flexversion:0.7.0'
     }
diff --git a/gradle-baseline-java-config/build.gradle b/gradle-baseline-java-config/build.gradle
index 1db48a409..a3ed6b42a 100644
--- a/gradle-baseline-java-config/build.gradle
+++ b/gradle-baseline-java-config/build.gradle
@@ -16,6 +16,7 @@ bintrayUpload.dependsOn { zipConfig }
 bintray {
     user = System.getenv('BINTRAY_USER')
     key = System.getenv('BINTRAY_KEY')
+    publish = true
     pkg {
         repo = 'releases'
         name = 'gradle-baseline'
@@ -26,11 +27,11 @@ bintray {
 }
 
 publishing {
-	publications {
-	    ConfigPublication(MavenPublication) {
-	        artifact(zipConfig) {
-	            extension 'zip'
-	        }
-	    }
-	}
+    publications {
+        ConfigPublication(MavenPublication) {
+            artifact(zipConfig) {
+                extension 'zip'
+            }
+        }
+    }
 }
diff --git a/gradle-baseline-java/build.gradle b/gradle-baseline-java/build.gradle
index f11ff2174..e26a064ab 100644
--- a/gradle-baseline-java/build.gradle
+++ b/gradle-baseline-java/build.gradle
@@ -46,6 +46,7 @@ bintrayUpload.dependsOn { sourceJar }
 bintray {
     user = System.getenv('BINTRAY_USER')
     key = System.getenv('BINTRAY_KEY')
+    publish = true
     pkg {
         repo = 'releases'
         name = 'gradle-baseline'