Import Spring Data release train BOM instead of individual modules.

The dependencies pom.xml now declares an import to the spring-data-releasetrain BOM pom.xml which in turn constraints version numbers for a dedicated release train release. This has the effect of users being able to upgrade to a certain release train by redeclaring the spring-data-releasetrain.version property to e.g. Dijkstra-M1. Individual modules can be upgraded by simply declaring the dependency in the desired version manually in a <dependencies /> or <dependencyManagement /> block.

Removed the explicit declaration for Spring HATEOAS as it is pulled in transitively by Spring Data REST anyway and thus makes sure it's in a compatible version.
pull/727/merge
Oliver Gierke 11 years ago committed by Dave Syer
parent d597cc3387
commit 26c5a3edb2

@ -83,10 +83,8 @@
<spring.version>4.0.3.RELEASE</spring.version> <spring.version>4.0.3.RELEASE</spring.version>
<spring-integration.version>3.0.2.RELEASE</spring-integration.version> <spring-integration.version>3.0.2.RELEASE</spring-integration.version>
<spring-batch.version>2.2.6.RELEASE</spring-batch.version> <spring-batch.version>2.2.6.RELEASE</spring-batch.version>
<spring-data-jpa.version>1.5.2.RELEASE</spring-data-jpa.version>
<spring-data-mongodb.version>1.4.2.RELEASE</spring-data-mongodb.version>
<spring-data-redis.version>1.1.1.RELEASE</spring-data-redis.version> <spring-data-redis.version>1.1.1.RELEASE</spring-data-redis.version>
<spring-data-rest.version>2.0.2.RELEASE</spring-data-rest.version> <spring-data-releasetrain.version>Codd-SR2</spring-data-releasetrain.version>
<spring-hateoas.version>0.9.0.RELEASE</spring-hateoas.version> <spring-hateoas.version>0.9.0.RELEASE</spring-hateoas.version>
<spring-plugin.version>1.0.0.RELEASE</spring-plugin.version> <spring-plugin.version>1.0.0.RELEASE</spring-plugin.version>
<spring-rabbit.version>1.2.2.RELEASE</spring-rabbit.version> <spring-rabbit.version>1.2.2.RELEASE</spring-rabbit.version>
@ -515,23 +513,10 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.data</groupId> <groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId> <artifactId>spring-data-releasetrain</artifactId>
<version>${spring-data-jpa.version}</version> <version>${spring-data-releasetrain.version}</version>
<exclusions> <type>pom</type>
<exclusion> <scope>import</scope>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb</artifactId>
<version>${spring-data-mongodb.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.data</groupId> <groupId>org.springframework.data</groupId>
@ -548,11 +533,6 @@
<artifactId>spring-plugin-core</artifactId> <artifactId>spring-plugin-core</artifactId>
<version>${spring-plugin.version}</version> <version>${spring-plugin.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-rest-webmvc</artifactId>
<version>${spring-data-rest.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.integration</groupId> <groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-core</artifactId> <artifactId>spring-integration-core</artifactId>

@ -23,10 +23,6 @@
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.hateoas</groupId>
<artifactId>spring-hateoas</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.data</groupId> <groupId>org.springframework.data</groupId>
<artifactId>spring-data-rest-webmvc</artifactId> <artifactId>spring-data-rest-webmvc</artifactId>

Loading…
Cancel
Save