From f1daae049135ea9c771d2efebd187d40e4ca593c Mon Sep 17 00:00:00 2001 From: Clinton Alexander Date: Tue, 6 Dec 2016 16:29:15 +0000 Subject: [PATCH] To avoid needing to bump three different files upon updates, a common publish properties file has been added. --- build.gradle | 6 +++++- gradle-plugins/build.gradle | 8 ++++++-- gradle-plugins/publish-utils/build.gradle | 6 +++++- publish.properties | 1 + 4 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 publish.properties diff --git a/build.gradle b/build.gradle index 8cbf608b52..f49282bb87 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,11 @@ buildscript { + // For sharing constants between builds + Properties props = new Properties() + file("publish.properties").withInputStream { props.load(it) } + // Our version: bump this on release. ext.corda_version = "0.7-SNAPSHOT" - ext.gradle_plugins_version = "0.6.2" + ext.gradle_plugins_version = props.getProperty("gradlePluginsVersion") ext.kotlin_version = '1.0.5' ext.quasar_version = '0.7.6' ext.asm_version = '0.5.3' diff --git a/gradle-plugins/build.gradle b/gradle-plugins/build.gradle index 7c7a233f76..7fd9b55d4e 100644 --- a/gradle-plugins/build.gradle +++ b/gradle-plugins/build.gradle @@ -2,8 +2,12 @@ // or if you are developing these plugins. See the readme for more information. buildscript { - ext.gradle_plugins_version = "0.6.2" // Our version: bump this on release. - ext.corda_published_version = "0.6.2" // Depend on our existing published publishing plugin. + // For sharing constants between builds + Properties props = new Properties() + file("../publish.properties").withInputStream { props.load(it) } + + ext.gradle_plugins_version = props.getProperty("gradlePluginsVersion") // Our version: bump this on release. + ext.corda_published_version = "0.6.2" // Only needs to be bumped when the publishing plugin is changed. repositories { mavenLocal() diff --git a/gradle-plugins/publish-utils/build.gradle b/gradle-plugins/publish-utils/build.gradle index b8733fed95..733de1bbee 100644 --- a/gradle-plugins/publish-utils/build.gradle +++ b/gradle-plugins/publish-utils/build.gradle @@ -4,7 +4,11 @@ apply plugin: 'com.jfrog.bintray' // Used for bootstrapping project buildscript { - ext.gradle_plugins_version = "0.6.2" // Our version: bump this on release. + // For sharing constants between builds + Properties props = new Properties() + file("../../publish.properties").withInputStream { props.load(it) } + + ext.gradle_plugins_version = props.getProperty("gradlePluginsVersion") repositories { jcenter() diff --git a/publish.properties b/publish.properties new file mode 100644 index 0000000000..1c38857662 --- /dev/null +++ b/publish.properties @@ -0,0 +1 @@ +gradlePluginsVersion=0.6.2 \ No newline at end of file