66 lines
3.2 KiB
XML
66 lines
3.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?asciidoc-toc?>
|
|
<?asciidoc-numbered?>
|
|
<book xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink" version="5.0" xml:lang="en">
|
|
<info>
|
|
<title>Spring Cloud Release Train</title>
|
|
<date>2019-01-22</date>
|
|
</info>
|
|
<preface>
|
|
<title></title>
|
|
<simpara>Spring Cloud Release Train is a curated set of dependencies across a
|
|
range of Spring Cloud projects. You consume it by using the
|
|
spring-cloud-dependencies POM to manage dependencies in Maven or
|
|
Gradle. The release trains have names, not versions, to avoid
|
|
confusion with the sub-projects. The names are an alphabetic sequence
|
|
(so you can sort them chronologically) with names of London Tube
|
|
stations ("Angel" is the first release, "Brixton" is the second).</simpara>
|
|
</preface>
|
|
<chapter xml:id="_using_spring_cloud_dependencies_with_spring_io_platform">
|
|
<title>Using Spring Cloud Dependencies with Spring IO Platform</title>
|
|
<simpara>The Spring IO Platform is a modular, enterprise-grade curated set of dependencies. To use the Spring Cloud Starters with Spring IO Platform, you must import the Spring Cloud Dependencies bill of materials (BOM) first.</simpara>
|
|
<simpara>To use version Cairo-SR3 of the Spring IO Platform and Spring Cloud Release Train Greenwich.BUILD-SNAPSHOT with Maven, update the pom.xml as follows:</simpara>
|
|
<programlisting language="xml" linenumbering="unnumbered"><dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-dependencies</artifactId>
|
|
<version>Greenwich.BUILD-SNAPSHOT</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.spring.platform</groupId>
|
|
<artifactId>platform-bom</artifactId>
|
|
<version>Cairo-SR3</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement></programlisting>
|
|
<note>
|
|
<simpara>The Spring Cloud Dependencies BOM must go first, so that its dependencies have precedence of the Spring IO Platform dependencies.</simpara>
|
|
</note>
|
|
<simpara>For gradle, update the build.gradle as follows:</simpara>
|
|
<programlisting language="groovy" linenumbering="unnumbered">buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.1.0.M1")
|
|
}
|
|
}
|
|
|
|
apply plugin: 'spring-boot'
|
|
|
|
dependencyManagement {
|
|
imports {
|
|
mavenBom "org.springframework.cloud:spring-cloud-dependencies:Greenwich.BUILD-SNAPSHOT"
|
|
mavenBom 'io.spring.platform:platform-bom:Cairo-SR3'
|
|
}
|
|
}</programlisting>
|
|
<note>
|
|
<simpara>Spring Cloud is released under the non-restrictive Apache 2.0 license. If you would like to contribute to this section of the documentation or if you find an error, please find the source code and issue trackers in the project at <link xl:href="https://github.com/spring-cloud/spring-cloud-release/tree/master/docs/src/main/asciidoc">github</link>.</simpara>
|
|
</note>
|
|
</chapter>
|
|
</book> |