Skip to content

Commit 6c44809

Browse files
committed
Merge branch '2.7.x' into 3.0.x
Closes gh-37817
2 parents bfb818a + 254b8fe commit 6c44809

File tree

4 files changed

+39
-31
lines changed

4 files changed

+39
-31
lines changed

buildSrc/build.gradle

+27-25
Original file line numberDiff line numberDiff line change
@@ -10,52 +10,54 @@ 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"])
17-
ext.set("springFrameworkVersion", properties["springFrameworkVersion"])
18-
if (properties["springFrameworkVersion"].contains("-")) {
19-
repositories {
20-
maven { url "https://repo.spring.io/milestone" }
21-
maven { url "https://repo.spring.io/snapshot" }
22-
}
20+
["assertj", "commonsCodec", "hamcrest", "jackson", "junitJupiter",
21+
"kotlin", "maven", "springFramework"].each {
22+
versions[it] = properties[it + "Version"]
23+
}
24+
}
25+
ext.set("versions", versions)
26+
if (versions.springFramework.contains("-")) {
27+
repositories {
28+
maven { url "https://repo.spring.io/milestone" }
29+
maven { url "https://repo.spring.io/snapshot" }
2330
}
2431
}
25-
26-
sourceCompatibility = 17
27-
targetCompatibility = 17
2832

2933
dependencies {
3034
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}"
3135

32-
implementation(platform("org.springframework:spring-framework-bom:${springFrameworkVersion}"))
36+
implementation(platform("org.springframework:spring-framework-bom:${versions.springFramework}"))
3337
implementation("com.diffplug.gradle:goomph:3.37.2")
34-
implementation("com.fasterxml.jackson.core:jackson-databind:2.11.4")
38+
implementation("com.fasterxml.jackson.core:jackson-databind:${versions.jackson}")
3539
implementation("com.gradle:gradle-enterprise-gradle-plugin:3.12.1")
3640
implementation("com.tngtech.archunit:archunit:1.0.0")
37-
implementation("de.undercouch.download:de.undercouch.download.gradle.plugin:5.5.0")
38-
implementation("commons-codec:commons-codec:1.13")
41+
implementation("commons-codec:commons-codec:${versions.commonsCodec}")
3942
implementation("io.spring.javaformat:spring-javaformat-gradle-plugin:${javaFormatVersion}")
40-
implementation("org.apache.maven:maven-embedder:3.6.2")
43+
implementation("org.apache.maven:maven-embedder:${versions.maven}")
4144
implementation("org.asciidoctor:asciidoctor-gradle-jvm:3.3.2")
42-
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
43-
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:${kotlinVersion}")
45+
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}")
46+
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:${versions.kotlin}")
4447
implementation("org.springframework:spring-context")
4548
implementation("org.springframework:spring-core")
4649
implementation("org.springframework:spring-web")
4750

48-
testImplementation("org.apache.logging.log4j:log4j-core:2.17.1")
49-
testImplementation("org.assertj:assertj-core:3.11.1")
50-
testImplementation("org.hamcrest:hamcrest:2.2")
51-
testImplementation("org.junit.jupiter:junit-jupiter:5.6.0")
51+
testImplementation("org.assertj:assertj-core:${versions.assertj}")
52+
testImplementation("org.hamcrest:hamcrest:${versions.hamcrest}")
53+
testImplementation("org.junit.jupiter:junit-jupiter:${versions.junitJupiter}")
5254
testImplementation("org.springframework:spring-test")
5355

5456
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
5557
}
5658

5759
checkstyle {
58-
toolVersion = 8.11
60+
toolVersion = "10.12.4"
5961
}
6062

6163
gradlePlugin {
@@ -65,8 +67,8 @@ gradlePlugin {
6567
implementationClass = "org.springframework.boot.build.processors.AnnotationProcessorPlugin"
6668
}
6769
architecturePlugin {
68-
id = "org.springframework.boot.architecture"
69-
implementationClass = "org.springframework.boot.build.architecture.ArchitecturePlugin"
70+
id = "org.springframework.boot.architecture"
71+
implementationClass = "org.springframework.boot.build.architecture.ArchitecturePlugin"
7072
}
7173
autoConfigurationPlugin {
7274
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.23.1
8+
commonsCodecVersion=1.15
9+
hamcrestVersion=2.2
10+
jacksonVersion=2.14.3
11+
junitJupiterVersion=5.9.3
712
kotlinVersion=1.7.22
13+
mavenVersion=3.9.4
814
nativeBuildToolsVersion=0.9.27
915
springFrameworkVersion=6.0.13-SNAPSHOT
1016
tomcatVersion=10.1.13

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ bom {
5656
]
5757
}
5858
}
59-
library("AssertJ", "3.23.1") {
59+
library("AssertJ", "${assertjVersion}") {
6060
group("org.assertj") {
6161
modules = [
6262
"assertj-core"
@@ -136,7 +136,7 @@ bom {
136136
]
137137
}
138138
}
139-
library("Commons Codec", "1.15") {
139+
library("Commons Codec", "${commonsCodecVersion}") {
140140
group("commons-codec") {
141141
modules = [
142142
"commons-codec"
@@ -318,7 +318,7 @@ bom {
318318
]
319319
}
320320
}
321-
library("Hamcrest", "2.2") {
321+
library("Hamcrest", "${hamcrestVersion}") {
322322
group("org.hamcrest") {
323323
modules = [
324324
"hamcrest",
@@ -451,7 +451,7 @@ bom {
451451
]
452452
}
453453
}
454-
library("Jackson Bom", "2.14.3") {
454+
library("Jackson Bom", "${jacksonVersion}") {
455455
group("com.fasterxml.jackson") {
456456
imports = [
457457
"jackson-bom"
@@ -713,7 +713,7 @@ bom {
713713
]
714714
}
715715
}
716-
library("JUnit Jupiter", "5.9.3") {
716+
library("JUnit Jupiter", "${junitJupiterVersion}") {
717717
group("org.junit") {
718718
imports = [
719719
"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)