Skip to content

Commit 689a61e

Browse files
committed
Merge branch '3.2.x' into 3.3.x
2 parents 9c6a744 + 23ddad1 commit 689a61e

File tree

4 files changed

+23
-25
lines changed

4 files changed

+23
-25
lines changed

buildSrc/build.gradle

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,56 +13,45 @@ repositories {
1313
sourceCompatibility = 17
1414
targetCompatibility = 17
1515

16-
def versions = [:]
17-
new File(projectDir.parentFile, "gradle.properties").withInputStream {
18-
def properties = new Properties()
19-
properties.load(it)
20-
["assertj", "commonsCodec", "hamcrest", "junitJupiter", "kotlin", "maven", "snakeYaml"].each {
21-
versions[it] = properties[it + "Version"]
22-
}
23-
}
24-
versions["jackson"] = "2.15.3"
25-
versions["springFramework"] = "6.0.12"
26-
ext.set("versions", versions)
27-
if (versions.springFramework.contains("-")) {
16+
if ("${springFrameworkVersion}".contains("-")) {
2817
repositories {
2918
maven { url "https://repo.spring.io/milestone" }
3019
maven { url "https://repo.spring.io/snapshot" }
3120
}
3221
}
3322

3423
checkstyle {
35-
toolVersion = "10.12.4"
24+
toolVersion = "{checkstyleToolVersion}"
3625
}
3726

3827
dependencies {
3928
checkstyle("com.puppycrawl.tools:checkstyle:${checkstyle.toolVersion}")
4029
checkstyle("io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}")
4130

42-
implementation(platform("org.springframework:spring-framework-bom:${versions.springFramework}"))
31+
implementation(platform("org.springframework:spring-framework-bom:${springFrameworkVersion}"))
4332
implementation("dev.adamko.dokkatoo:dokkatoo-plugin:2.3.1")
44-
implementation("com.fasterxml.jackson.core:jackson-databind:${versions.jackson}")
33+
implementation("com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}")
4534
implementation("com.github.node-gradle:gradle-node-plugin:3.5.1")
4635
implementation("com.gradle:develocity-gradle-plugin:3.17.2")
4736
implementation("com.tngtech.archunit:archunit:1.3.0")
48-
implementation("commons-codec:commons-codec:${versions.commonsCodec}")
37+
implementation("commons-codec:commons-codec:${commonsCodecVersion}")
4938
implementation("de.undercouch.download:de.undercouch.download.gradle.plugin:5.5.0")
5039
implementation("io.spring.gradle.antora:spring-antora-plugin:0.0.1")
5140
implementation("io.spring.javaformat:spring-javaformat-gradle-plugin:${javaFormatVersion}")
5241
implementation("io.spring.nohttp:nohttp-gradle:0.0.11")
5342
implementation("org.apache.httpcomponents.client5:httpclient5:5.3.1")
54-
implementation("org.apache.maven:maven-embedder:${versions.maven}")
43+
implementation("org.apache.maven:maven-embedder:${mavenVersion}")
5544
implementation("org.antora:gradle-antora-plugin:1.0.0")
56-
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}")
57-
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:${versions.kotlin}")
45+
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
46+
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:${kotlinVersion}")
5847
implementation("org.springframework:spring-context")
5948
implementation("org.springframework:spring-core")
6049
implementation("org.springframework:spring-web")
61-
implementation("org.yaml:snakeyaml:${versions.snakeYaml}")
50+
implementation("org.yaml:snakeyaml:${snakeYamlVersion}")
6251

63-
testImplementation("org.assertj:assertj-core:${versions.assertj}")
64-
testImplementation("org.hamcrest:hamcrest:${versions.hamcrest}")
65-
testImplementation("org.junit.jupiter:junit-jupiter:${versions.junitJupiter}")
52+
testImplementation("org.assertj:assertj-core:${assertjVersion}")
53+
testImplementation("org.hamcrest:hamcrest:${hamcrestVersion}")
54+
testImplementation("org.junit.jupiter:junit-jupiter:${junitJupiterVersion}")
6655
testImplementation("org.springframework:spring-test")
6756

6857
testRuntimeOnly("org.junit.platform:junit-platform-launcher")

buildSrc/gradle.properties

Lines changed: 0 additions & 1 deletion
This file was deleted.

buildSrc/settings.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,11 @@ pluginManagement {
44
gradlePluginPortal()
55
}
66
}
7+
8+
gradle.rootProject((project) -> {
9+
new File(rootDir.parentFile, "gradle.properties").withInputStream {
10+
def properties = new Properties()
11+
properties.load(it)
12+
properties.forEach(project.ext::set)
13+
}
14+
});

gradle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@ org.gradle.parallel=true
77
org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8
88

99
assertjVersion=3.25.3
10+
checkstyleToolVersion=10.12.4
1011
commonsCodecVersion=1.16.1
1112
graalVersion=22.3
1213
hamcrestVersion=2.2
1314
jacksonVersion=2.17.2
15+
javaFormatVersion=0.0.43
1416
junitJupiterVersion=5.10.3
1517
kotlinVersion=1.9.25
1618
mavenVersion=3.9.4
1719
nativeBuildToolsVersion=0.10.3
20+
snakeYamlVersion=2.2
1821
springFrameworkVersion=6.1.13
1922
springFramework60xVersion=6.0.23
2023
tomcatVersion=10.1.30
21-
snakeYamlVersion=2.2
2224

2325
kotlin.stdlib.default.dependency=false

0 commit comments

Comments
 (0)