Skip to content

Commit 740feb0

Browse files
committed
Upgrade to Spring Framework 6.0.0-M2
Closes gh-775
1 parent 25f7971 commit 740feb0

File tree

7 files changed

+25
-9
lines changed

7 files changed

+25
-9
lines changed

build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ allprojects {
99
repositories {
1010
mavenLocal()
1111
mavenCentral()
12+
maven { url "https://repo.spring.io/milestone" }
1213
maven { url "https://repo.spring.io/snapshot" }
1314
}
1415
}
@@ -25,7 +26,7 @@ nohttp {
2526
}
2627

2728
ext {
28-
springFrameworkVersion = "6.0.0-SNAPSHOT"
29+
springFrameworkVersion = "6.0.0-M2"
2930
javadocLinks = [
3031
"https://docs.oracle.com/javase/8/docs/api/",
3132
"https://docs.spring.io/spring-framework/docs/$springFrameworkVersion/javadoc-api/",

samples/junit5/build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ configurations {
2828
dependencies {
2929
asciidoctorExtensions "org.springframework.restdocs:spring-restdocs-asciidoctor:$restdocsVersion"
3030

31-
implementation 'org.springframework:spring-webmvc:6.0.0-M1'
31+
implementation platform("org.springframework:spring-framework-bom:6.0.0-M2")
32+
implementation 'org.springframework:spring-webmvc'
3233

3334
testImplementation "org.springframework.restdocs:spring-restdocs-mockmvc:$restdocsVersion"
3435
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.0'

samples/rest-notes-slate/build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ ext {
2222
ext['spring-restdocs.version'] = '3.0.0-SNAPSHOT'
2323

2424
dependencies {
25+
implementation platform("org.springframework:spring-framework-bom:6.0.0-M2")
2526
implementation "com.fasterxml.jackson.core:jackson-databind:2.13.1"
2627
implementation "jakarta.servlet:jakarta.servlet-api:5.0.0"
2728
implementation "org.hibernate.validator:hibernate-validator:7.0.0.Final"
2829
implementation "org.hibernate:hibernate-core-jakarta:5.5.7.Final"
29-
implementation "org.springframework:spring-webmvc:6.0.0-SNAPSHOT"
30+
implementation "org.springframework:spring-webmvc"
3031
implementation "org.springframework.data:spring-data-jpa:3.0.0-SNAPSHOT"
3132
implementation "org.springframework.data:spring-data-rest-webmvc:4.0.0-SNAPSHOT"
3233

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

+12-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@
1515
<restdocs.version>3.0.0-SNAPSHOT</restdocs.version>
1616
</properties>
1717

18+
<dependencyManagement>
19+
<dependencies>
20+
<dependency>
21+
<groupId>org.springframework</groupId>
22+
<artifactId>spring-framework-bom</artifactId>
23+
<version>6.0.0-M2</version>
24+
<scope>import</scope>
25+
<type>pom</type>
26+
</dependency>
27+
</dependencies>
28+
</dependencyManagement>
29+
1830
<dependencies>
1931
<dependency>
2032
<groupId>com.fasterxml.jackson.core</groupId>
@@ -39,7 +51,6 @@
3951
<dependency>
4052
<groupId>org.springframework</groupId>
4153
<artifactId>spring-webmvc</artifactId>
42-
<version>6.0.0-SNAPSHOT</version>
4354
</dependency>
4455
<dependency>
4556
<groupId>org.springframework.data</groupId>

samples/rest-notes-spring-hateoas/build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ configurations {
2727
dependencies {
2828
asciidoctorExtensions "org.springframework.restdocs:spring-restdocs-asciidoctor:$restdocsVersion"
2929

30+
implementation platform("org.springframework:spring-framework-bom:6.0.0-M2")
3031
implementation "com.fasterxml.jackson.core:jackson-databind:2.13.1"
3132
implementation "jakarta.servlet:jakarta.servlet-api:5.0.0"
3233
implementation "org.hibernate.validator:hibernate-validator:7.0.0.Final"
3334
implementation "org.hibernate:hibernate-core-jakarta:5.5.7.Final"
34-
implementation "org.springframework:spring-webmvc:6.0.0-SNAPSHOT"
35+
implementation "org.springframework:spring-webmvc"
3536
implementation "org.springframework.data:spring-data-jpa:3.0.0-SNAPSHOT"
3637
implementation "org.springframework.hateoas:spring-hateoas:2.0.0-SNAPSHOT"
3738

samples/testng/build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ configurations {
2828
dependencies {
2929
asciidoctorExtensions "org.springframework.restdocs:spring-restdocs-asciidoctor:$restdocsVersion"
3030

31-
implementation "org.springframework:spring-webmvc:6.0.0-M1"
31+
implementation platform("org.springframework:spring-framework-bom:6.0.0-M2")
32+
implementation "org.springframework:spring-webmvc"
3233

3334
testImplementation "org.springframework.restdocs:spring-restdocs-mockmvc:$restdocsVersion"
3435
testImplementation "org.testng:testng:6.9.10"

samples/web-test-client/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ configurations {
2929
dependencies {
3030
asciidoctorExtensions "org.springframework.restdocs:spring-restdocs-asciidoctor:$restdocsVersion"
3131

32-
implementation 'org.springframework:spring-context:6.0.0-M1'
33-
implementation 'org.springframework:spring-webflux:6.0.0-M1'
32+
implementation platform("org.springframework:spring-framework-bom:6.0.0-M2")
33+
implementation 'org.springframework:spring-context'
34+
implementation 'org.springframework:spring-webflux'
3435

3536
testImplementation 'junit:junit:4.13.1'
36-
testImplementation 'org.springframework:spring-test:6.0.0-M1'
3737
testImplementation "org.springframework.restdocs:spring-restdocs-webtestclient:$restdocsVersion"
3838
}
3939

0 commit comments

Comments
 (0)