diff --git a/_includes/build.gradle b/_includes/build.gradle index a7604b3..ce707d7 100644 --- a/_includes/build.gradle +++ b/_includes/build.gradle @@ -8,7 +8,7 @@ apply plugin: "io.spring.dependency-management" dependencyManagement { imports { - mavenBom '{@= groupId @}:spring-cloud-bus:{@= version @}' + mavenBom '{@= groupId @}:spring-cloud-bus:{@= fundBom(version) @}' } } diff --git a/_includes/custom.js b/_includes/custom.js new file mode 100644 index 0000000..f237e12 --- /dev/null +++ b/_includes/custom.js @@ -0,0 +1,13 @@ +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; +} + diff --git a/_includes/pom.xml b/_includes/pom.xml index fcb327b..b9e9059 100644 --- a/_includes/pom.xml +++ b/_includes/pom.xml @@ -3,7 +3,7 @@ {@= groupId @} spring-cloud-bus-parent - {@= version @} + {@= findBom(version) @} pom import diff --git a/index.html b/index.html index 828fec2..5ddaeaf 100644 --- a/index.html +++ b/index.html @@ -35,6 +35,7 @@ Spring Cloud Bus links nodes of a distributed system with a lightweight message ## Quick Start + {% include download_widget.md %} As long as Spring Cloud Bus AMQP and RabbitMQ are on the