Skip to content

Commit 4384631

Browse files
committed
Merge branch '3.0.x' into 3.1.x
Closes gh-37818
2 parents ff1a218 + 6c44809 commit 4384631

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.3")
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.24.2
8+
commonsCodecVersion=1.15
9+
hamcrestVersion=2.2
10+
jacksonVersion=2.15.2
11+
junitJupiterVersion=5.9.3
712
kotlinVersion=1.8.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
@@ -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.15") {
175+
library("Commons Codec", "${commonsCodecVersion}") {
176176
group("commons-codec") {
177177
modules = [
178178
"commons-codec"
@@ -354,7 +354,7 @@ bom {
354354
]
355355
}
356356
}
357-
library("Hamcrest", "2.2") {
357+
library("Hamcrest", "${hamcrestVersion}") {
358358
group("org.hamcrest") {
359359
modules = [
360360
"hamcrest",
@@ -473,7 +473,7 @@ bom {
473473
]
474474
}
475475
}
476-
library("Jackson Bom", "2.15.2") {
476+
library("Jackson Bom", "${jacksonVersion}") {
477477
group("com.fasterxml.jackson") {
478478
imports = [
479479
"jackson-bom"
@@ -735,7 +735,7 @@ bom {
735735
]
736736
}
737737
}
738-
library("JUnit Jupiter", "5.9.3") {
738+
library("JUnit Jupiter", "${junitJupiterVersion}") {
739739
group("org.junit") {
740740
imports = [
741741
"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)