Remove bom finder from download widget

This commit is contained in:
Dave Syer
2015-07-10 15:44:59 +01:00
parent 378b5e9d2a
commit f0310d5208
3 changed files with 3 additions and 14 deletions

View File

@@ -8,7 +8,7 @@ apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom '{@= groupId @}:spring-cloud-bus:{@= fundBom(version) @}'
mavenBom '{@= groupId @}:spring-cloud-bus:{@= version @}'
}
}

View File

@@ -1,13 +1,2 @@
var defaultBomVersion = "Angel.SR3";
var boms = {
"1.0.0.RELEASE": "Angel.RELEASE",
"1.0.1.RELEASE": "Angel.SR1",
"1.0.2.RELEASE": "Angel.SR3",
"1.0.3.BUILD-SNAPSHOT": "Angel.BUILD-SNAPSHOT",
"1.1.0.BUILD-SNAPSHOT": "Brixton.BUILD-SNAPSHOT"
};
function findBom(version) {
if (boms[version]) return boms[version];
return defaultBomVersion;
}

View File

@@ -3,7 +3,7 @@
<dependency>
<groupId>{@= groupId @}</groupId>
<artifactId>spring-cloud-bus-parent</artifactId>
<version>{@= findBom(version) @}</version>
<version>{@= version @}</version>
<type>pom</type>
<scope>import</scope>
</dependency>