From ae39a4dcddad31d3c883e77a4b6c3a71f4de1c35 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Mon, 19 May 2014 15:30:07 -0500 Subject: [PATCH] SEC-2579: Polish so that platformVersion has a default --- build.gradle | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index b82cf05ede..c4c6abe26f 100644 --- a/build.gradle +++ b/build.gradle @@ -101,17 +101,16 @@ configure(javaProjects) { configure(coreModuleProjects) { apply plugin: 'bundlor' apply plugin: 'emma' - - if (project.hasProperty('platformVersion')) { - apply plugin: 'spring-io' + apply plugin: 'spring-io' - repositories { - maven { url "https://repo.spring.io/libs-snapshot" } - } + ext.springIoVersion = project.hasProperty('platformVersion') ? platformVersion : '1.0.0.BUILD-SNAPSHOT' - dependencies { - springIoVersions "io.spring.platform:platform-versions:${platformVersion}@properties" - } + repositories { + maven { url "https://repo.spring.io/libs-snapshot" } + } + + dependencies { + springIoVersions "io.spring.platform:platform-versions:${springIoVersion}@properties" } bundlor.doFirst {