Add bom finder javascript

This commit is contained in:
Dave Syer
2015-07-10 15:15:29 +01:00
parent 4793fd20e2
commit 13b7cbbc62
4 changed files with 12 additions and 2 deletions

View File

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

9
_includes/custom.js Normal file
View File

@@ -0,0 +1,9 @@
var defaultBomVersion = "Angel.SR3";
var boms = {
"1.0.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-streams-parent</artifactId>
<version>{@= version @}</version>
<version>{@= findBom(version) @}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

View File

@@ -35,6 +35,7 @@ Spring Cloud Streams allows a user to develop and run messaging microservices us
<span id="quick-start"></span>
## Quick Start
<script type="text/javascript">{% include custom.js %}</script>
{% include download_widget.md %}
As long as Spring Cloud Streams and a Spring XD Message Bus is on the