Skip to content

Commit 7fd4458

Browse files
committed
Merge branch '3.1.x'
Closes gh-37820
2 parents 4f753a4 + 4384631 commit 7fd4458

File tree

4 files changed

+41
-27
lines changed

4 files changed

+41
-27
lines changed

buildSrc/build.gradle

+29-21
Original file line numberDiff line numberDiff line change
@@ -10,47 +10,55 @@ repositories {
1010
gradlePluginPortal()
1111
}
1212

13-
new File(new File("$projectDir").parentFile, "gradle.properties").withInputStream {
13+
sourceCompatibility = 17
14+
targetCompatibility = 17
15+
16+
def versions = [:]
17+
new File(projectDir.parentFile, "gradle.properties").withInputStream {
1418
def properties = new Properties()
1519
properties.load(it)
16-
ext.set("kotlinVersion", properties["kotlinVersion"])
20+
["assertj", "commonsCodec", "hamcrest", "jackson", "junitJupiter",
21+
"kotlin", "maven"].each {
22+
versions[it] = properties[it + "Version"]
23+
}
24+
}
25+
versions["springFramework"] = "6.0.12"
26+
ext.set("versions", versions)
27+
if (versions.springFramework.contains("-")) {
28+
repositories {
29+
maven { url "https://repo.spring.io/milestone" }
30+
maven { url "https://repo.spring.io/snapshot" }
31+
}
1732
}
18-
19-
ext.set("springFrameworkVersion", "6.0.10")
20-
21-
sourceCompatibility = 17
22-
targetCompatibility = 17
2333

2434
dependencies {
2535
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}"
2636

27-
implementation(platform("org.springframework:spring-framework-bom:${springFrameworkVersion}"))
37+
implementation(platform("org.springframework:spring-framework-bom:${versions.springFramework}"))
2838
implementation("com.diffplug.gradle:goomph:3.37.2")
29-
implementation("com.fasterxml.jackson.core:jackson-databind:2.11.4")
39+
implementation("com.fasterxml.jackson.core:jackson-databind:${versions.jackson}")
3040
implementation("com.gradle:gradle-enterprise-gradle-plugin:3.12.1")
3141
implementation("com.tngtech.archunit:archunit:1.0.0")
32-
implementation("de.undercouch.download:de.undercouch.download.gradle.plugin:5.5.0")
33-
implementation("commons-codec:commons-codec:1.13")
42+
implementation("commons-codec:commons-codec:${versions.commonsCodec}")
3443
implementation("io.spring.javaformat:spring-javaformat-gradle-plugin:${javaFormatVersion}")
35-
implementation("org.apache.maven:maven-embedder:3.6.3")
44+
implementation("org.apache.maven:maven-embedder:${versions.maven}")
3645
implementation("org.asciidoctor:asciidoctor-gradle-jvm:3.3.2")
37-
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
38-
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:${kotlinVersion}")
46+
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}")
47+
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:${versions.kotlin}")
3948
implementation("org.springframework:spring-context")
4049
implementation("org.springframework:spring-core")
4150
implementation("org.springframework:spring-web")
4251

43-
testImplementation("org.apache.logging.log4j:log4j-core:2.17.1")
44-
testImplementation("org.assertj:assertj-core:3.11.1")
45-
testImplementation("org.hamcrest:hamcrest:2.2")
46-
testImplementation("org.junit.jupiter:junit-jupiter:5.6.0")
52+
testImplementation("org.assertj:assertj-core:${versions.assertj}")
53+
testImplementation("org.hamcrest:hamcrest:${versions.hamcrest}")
54+
testImplementation("org.junit.jupiter:junit-jupiter:${versions.junitJupiter}")
4755
testImplementation("org.springframework:spring-test")
4856

4957
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
5058
}
5159

5260
checkstyle {
53-
toolVersion = 8.11
61+
toolVersion = "10.12.4"
5462
}
5563

5664
gradlePlugin {
@@ -60,8 +68,8 @@ gradlePlugin {
6068
implementationClass = "org.springframework.boot.build.processors.AnnotationProcessorPlugin"
6169
}
6270
architecturePlugin {
63-
id = "org.springframework.boot.architecture"
64-
implementationClass = "org.springframework.boot.build.architecture.ArchitecturePlugin"
71+
id = "org.springframework.boot.architecture"
72+
implementationClass = "org.springframework.boot.build.architecture.ArchitecturePlugin"
6573
}
6674
autoConfigurationPlugin {
6775
id = "org.springframework.boot.auto-configuration"

gradle.properties

+6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ org.gradle.caching=true
44
org.gradle.parallel=true
55
org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8
66

7+
assertjVersion=3.24.2
8+
commonsCodecVersion=1.16.0
9+
hamcrestVersion=2.2
10+
jacksonVersion=2.15.2
11+
junitJupiterVersion=5.10.0
712
kotlinVersion=1.9.10
13+
mavenVersion=3.9.4
814
nativeBuildToolsVersion=0.9.27
915
springFrameworkVersion=6.1.0-SNAPSHOT
1016
tomcatVersion=10.1.13

spring-boot-project/spring-boot-dependencies/build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ bom {
9292
]
9393
}
9494
}
95-
library("AssertJ", "3.24.2") {
95+
library("AssertJ", "${assertjVersion}") {
9696
group("org.assertj") {
9797
imports = [
9898
"assertj-bom"
@@ -172,7 +172,7 @@ bom {
172172
]
173173
}
174174
}
175-
library("Commons Codec", "1.16.0") {
175+
library("Commons Codec", "${commonsCodecVersion}") {
176176
group("commons-codec") {
177177
modules = [
178178
"commons-codec"
@@ -359,7 +359,7 @@ bom {
359359
]
360360
}
361361
}
362-
library("Hamcrest", "2.2") {
362+
library("Hamcrest", "${hamcrestVersion}") {
363363
group("org.hamcrest") {
364364
modules = [
365365
"hamcrest",
@@ -478,7 +478,7 @@ bom {
478478
]
479479
}
480480
}
481-
library("Jackson Bom", "2.15.2") {
481+
library("Jackson Bom", "${jacksonVersion}") {
482482
group("com.fasterxml.jackson") {
483483
imports = [
484484
"jackson-bom"
@@ -745,7 +745,7 @@ bom {
745745
]
746746
}
747747
}
748-
library("JUnit Jupiter", "5.10.0") {
748+
library("JUnit Jupiter", "${junitJupiterVersion}") {
749749
group("org.junit") {
750750
imports = [
751751
"junit-bom"

spring-boot-project/spring-boot-parent/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ bom {
8787
]
8888
}
8989
}
90-
library("Maven", "3.9.4") {
90+
library("Maven", "${mavenVersion}") {
9191
group("org.apache.maven") {
9292
modules = [
9393
"maven-core",

0 commit comments

Comments
 (0)