Align snippets with start.spring.io
Uses a Boot parent and a Cloud BOM instead of the CLoud parent
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
buildscript {
|
||||
dependencies {
|
||||
classpath "io.spring.gradle:dependency-management-plugin:0.4.0.RELEASE"
|
||||
}
|
||||
ext {
|
||||
springBootVersion = '{@= bootVersion @}'
|
||||
}
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: "io.spring.dependency-management"
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'spring-boot'
|
||||
|
||||
dependencyManagement {
|
||||
imports {
|
||||
@@ -16,3 +23,4 @@ dependencies {
|
||||
compile '{@= groupId @}:spring-cloud-starter-config'
|
||||
compile '{@= groupId @}:spring-cloud-starter-eureka'
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,20 @@
|
||||
<parent>
|
||||
<groupId>{@= groupId @}</groupId>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-cloud-starter-parent</artifactId>
|
||||
<version>{@= version @}</version>
|
||||
<version>{@= bootVersion @}</version>
|
||||
</parent>
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{@= groupId @}</groupId>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-dependencies</artifactId>
|
||||
<version>{@= version @}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>{@= groupId @}</groupId>
|
||||
|
||||
13
index.html
13
index.html
@@ -47,13 +47,12 @@ configure or extend to create a custom solution.
|
||||
<span id="quick-start"></span>
|
||||
## Quick Start
|
||||
|
||||
The release train label (see below) is actually only used
|
||||
explicitly in one artifact: "spring-cloud-starter-parent" (all the
|
||||
others have normal "Spring" release labels tied to their parent
|
||||
project). The starter parent is the one you can use as a BOM for
|
||||
dependency management or as a parent POM (Maven only). Example using
|
||||
the latest version with the config client and eureka (change the
|
||||
artifact ids to pull in other starters):
|
||||
The release train label (see below) is actually only used explicitly
|
||||
in one artifact: "spring-cloud-dependencies" (all the others have
|
||||
normal numeric release labels tied to their parent project). The
|
||||
depednencies POM is the one you can use as a BOM for dependency
|
||||
management. Example using the latest version with the config client
|
||||
and eureka (change the artifact ids to pull in other starters):
|
||||
|
||||
{% include download_widget.md %}
|
||||
|
||||
|
||||
@@ -151,6 +151,8 @@ Spring.SnippetView = Backbone.View.extend({
|
||||
|
||||
render: function () {
|
||||
|
||||
this.model.bootVersion = this.model.version.indexOf("Brixton")!=-1 ? "1.3.3.RELEASE" : "1.2.8.RELEASE";
|
||||
console.log(JSON.stringify(this.model))
|
||||
var html = $(this.combinedTemplate(this.model));
|
||||
this.$el.html(html);
|
||||
if (ZeroClipboard.detectFlashSupport()) {
|
||||
|
||||
Reference in New Issue
Block a user