Spring Cloud 的大版本 Spring Cloud Edgware.SR1 发布

来源: OSCHINA
编辑:
2018-01-17 07:32:00

Spring Cloud Edgware 的 Service Release 1 (SR1) 版本已发布,本次更新主要是对其包含的一些模块进行了升级,查看发布说明以了解更多信息。Spring Cloud Edgware 基于 Spring Boot 1.5.x 而构建。

以下模块作为 Edgware.SR1 的一部分进行了更新:

MODULE VERSION
Spring Cloud Gateway 1.0.1.RELEASE
Spring Cloud Stream Ditmars.SR3
Spring Cloud Config 1.4.1.RELEASE
Spring Cloud Netflix 1.4.2.RELEASE
Spring Cloud Commons 1.3.1.RELEASE
Spring Cloud Consul 1.3.1.RELEASE
Spring Cloud Sleuth 1.3.1.RELEASE
Spring Cloud Security 1.2.2.RELEASE
Spring Cloud Contract 1.2.2.RELEASE

使用

通过附带有 BOM 的 Maven 开始使用:

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>Edgware.SR1</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
<dependencies>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-config</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
    </dependency>
    ...
</dependencies>

Gradle

buildscript {
    dependencies {
        classpath "io.spring.gradle:dependency-management-plugin:1.0.2.RELEASE"
    }
}



apply plugin: "io.spring.dependency-management"

dependencyManagement {
    imports {
        mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Edgware.SR1'
    }
}

dependencies {
    compile 'org.springframework.cloud:spring-cloud-starter-config'
    compile 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
    ...
}

点此查看发布主页

展开阅读全文
点击加入讨论🔥(5) 发布并加入讨论🔥
5 评论
11 收藏
分享
返回顶部
顶部