Fix dependencies

Need to use "provided" scope for stuff that is not required in the
/ext classpath. Also need to use a proper BOM for stream
dependencies to avoid mouldy versions being imported.
This commit is contained in:
Dave Syer
2016-08-15 10:42:27 +01:00
parent 569508ef02
commit 4c5c4b90a0
2 changed files with 18 additions and 15 deletions

11
pom.xml
View File

@@ -95,15 +95,8 @@
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config</artifactId>
<version>1.1.3.BUILD-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-netflix</artifactId>
<version>1.1.4.BUILD-SNAPSHOT</version>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Brixton.BUILD-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>

View File

@@ -17,6 +17,10 @@
<version>1.2.0.BUILD-SNAPSHOT</version>
</parent>
<properties>
<spring-boot.version>1.4.1.BUILD-SNAPSHOT</spring-boot.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.cloud.launcher</groupId>
@@ -24,19 +28,25 @@
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-cli</artifactId>
<version>${spring-boot.version}</version>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-rsa</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream</artifactId>
<optional>true</optional>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-cli</artifactId>
<version>${spring-boot.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>