Skip to content

Commit 6892c96

Browse files
committed
Use bom to manage versions of samples' Spring Data dependencies
See gh-777
1 parent 62f3131 commit 6892c96

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

samples/rest-notes-slate/build.gradle

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ ext['spring-restdocs.version'] = '3.0.0-SNAPSHOT'
2323

2424
dependencies {
2525
implementation platform("org.springframework:spring-framework-bom:6.0.0-M2")
26+
implementation platform("org.springframework.data:spring-data-bom:2022.0.0-SNAPSHOT")
2627
implementation "com.fasterxml.jackson.core:jackson-databind:2.13.1"
2728
implementation "jakarta.servlet:jakarta.servlet-api:5.0.0"
2829
implementation "org.hibernate.validator:hibernate-validator:7.0.0.Final"
2930
implementation "org.hibernate:hibernate-core-jakarta:5.5.7.Final"
3031
implementation "org.springframework:spring-webmvc"
31-
implementation "org.springframework.data:spring-data-jpa:3.0.0-SNAPSHOT"
32-
implementation "org.springframework.data:spring-data-rest-webmvc:4.0.0-SNAPSHOT"
32+
implementation "org.springframework.data:spring-data-jpa"
33+
implementation "org.springframework.data:spring-data-rest-webmvc"
3334

3435
runtimeOnly 'com.h2database:h2:2.0.206'
3536
runtimeOnly 'org.atteo:evo-inflector:1.2.1'

samples/rest-notes-spring-data-rest/pom.xml

+7-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
<scope>import</scope>
2525
<type>pom</type>
2626
</dependency>
27+
<dependency>
28+
<groupId>org.springframework.data</groupId>
29+
<artifactId>spring-data-bom</artifactId>
30+
<version>2022.0.0-SNAPSHOT</version>
31+
<scope>import</scope>
32+
<type>pom</type>
33+
</dependency>
2734
</dependencies>
2835
</dependencyManagement>
2936

@@ -55,12 +62,10 @@
5562
<dependency>
5663
<groupId>org.springframework.data</groupId>
5764
<artifactId>spring-data-jpa</artifactId>
58-
<version>3.0.0-SNAPSHOT</version>
5965
</dependency>
6066
<dependency>
6167
<groupId>org.springframework.data</groupId>
6268
<artifactId>spring-data-rest-webmvc</artifactId>
63-
<version>4.0.0-SNAPSHOT</version>
6469
</dependency>
6570

6671
<dependency>

0 commit comments

Comments
 (0)