Add spring-cloud-function-dependencies and use it throughout

This commit is contained in:
Dave Syer
2017-09-15 08:43:34 +01:00
parent 55655d69ac
commit 61a902ce9a
21 changed files with 275 additions and 126 deletions

View File

@@ -1,7 +1,7 @@
buildscript {
ext {
springBootVersion = '1.5.2.RELEASE'
wrapperVersion = '1.0.6.RELEASE'
wrapperVersion = '1.0.7.RELEASE'
}
repositories {
mavenLocal()
@@ -41,8 +41,14 @@ ext['reactor.version'] = "3.0.7.RELEASE"
// TODO: remove this when pom.xml generator is fixed
jar.dependsOn = [thinProperties]
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-function-dependencies:${springCloudFunctionVersion}"
}
}
dependencies {
compile("org.springframework.cloud:spring-cloud-function-web:${springCloudFunctionVersion}")
compile("org.springframework.cloud:spring-cloud-function-compiler:${springCloudFunctionVersion}")
compile('org.springframework.cloud:spring-cloud-function-web')
compile('org.springframework.cloud:spring-cloud-function-compiler')
testCompile('org.springframework.boot:spring-boot-starter-test')
}

View File

@@ -20,25 +20,22 @@
<properties>
<java.version>1.8</java.version>
<spring-cloud-function.version>1.0.0.BUILD-SNAPSHOT</spring-cloud-function.version>
<wrapper.version>1.0.6.RELEASE</wrapper.version>
<reactor.version>3.0.7.BUILD-SNAPSHOT</reactor.version>
<reactor.version>3.0.7.RELEASE</reactor.version>
<wrapper.version>1.0.7.RELEASE</wrapper.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-function-web</artifactId>
<version>${spring-cloud-function.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-function-context</artifactId>
<version>${spring-cloud-function.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-function-compiler</artifactId>
<version>${spring-cloud-function.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
@@ -52,6 +49,18 @@
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-function-dependencies</artifactId>
<version>${spring-cloud-function.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>