Explorar o código

SEC-2579: Polish so that platformVersion has a default

Rob Winch %!s(int64=11) %!d(string=hai) anos
pai
achega
ae39a4dcdd
Modificáronse 1 ficheiros con 8 adicións e 9 borrados
  1. 8 9
      build.gradle

+ 8 - 9
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 {