Skip to content

Commit a4df3ce

Browse files
committed
Merge branch '3.3.x'
2 parents 6806276 + 689a61e commit a4df3ce

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
@@ -16,56 +16,45 @@ java {
1616
}
1717

1818

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

3726
checkstyle {
38-
toolVersion = "10.12.4"
27+
toolVersion = "{checkstyleToolVersion}"
3928
}
4029

4130
dependencies {
4231
checkstyle("com.puppycrawl.tools:checkstyle:${checkstyle.toolVersion}")
4332
checkstyle("io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}")
4433

45-
implementation(platform("org.springframework:spring-framework-bom:${versions.springFramework}"))
34+
implementation(platform("org.springframework:spring-framework-bom:${springFrameworkVersion}"))
4635
implementation("dev.adamko.dokkatoo:dokkatoo-plugin:2.3.1")
47-
implementation("com.fasterxml.jackson.core:jackson-databind:${versions.jackson}")
36+
implementation("com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}")
4837
implementation("com.github.node-gradle:gradle-node-plugin:3.5.1")
4938
implementation("com.gradle:develocity-gradle-plugin:3.17.2")
5039
implementation("com.tngtech.archunit:archunit:1.3.0")
51-
implementation("commons-codec:commons-codec:${versions.commonsCodec}")
40+
implementation("commons-codec:commons-codec:${commonsCodecVersion}")
5241
implementation("de.undercouch.download:de.undercouch.download.gradle.plugin:5.5.0")
5342
implementation("io.spring.gradle.antora:spring-antora-plugin:0.0.1")
5443
implementation("io.spring.javaformat:spring-javaformat-gradle-plugin:${javaFormatVersion}")
5544
implementation("io.spring.nohttp:nohttp-gradle:0.0.11")
5645
implementation("org.apache.httpcomponents.client5:httpclient5:5.3.1")
57-
implementation("org.apache.maven:maven-embedder:${versions.maven}")
46+
implementation("org.apache.maven:maven-embedder:${mavenVersion}")
5847
implementation("org.antora:gradle-antora-plugin:1.0.0")
59-
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}")
60-
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:${versions.kotlin}")
48+
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
49+
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:${kotlinVersion}")
6150
implementation("org.springframework:spring-context")
6251
implementation("org.springframework:spring-core")
6352
implementation("org.springframework:spring-web")
64-
implementation("org.yaml:snakeyaml:${versions.snakeYaml}")
53+
implementation("org.yaml:snakeyaml:${snakeYamlVersion}")
6554

66-
testImplementation("org.assertj:assertj-core:${versions.assertj}")
67-
testImplementation("org.hamcrest:hamcrest:${versions.hamcrest}")
68-
testImplementation("org.junit.jupiter:junit-jupiter:${versions.junitJupiter}")
55+
testImplementation("org.assertj:assertj-core:${assertjVersion}")
56+
testImplementation("org.hamcrest:hamcrest:${hamcrestVersion}")
57+
testImplementation("org.junit.jupiter:junit-jupiter:${junitJupiterVersion}")
6958
testImplementation("org.springframework:spring-test")
7059

7160
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.26.3
10+
checkstyleToolVersion=10.12.4
1011
commonsCodecVersion=1.17.1
1112
graalVersion=22.3
1213
hamcrestVersion=2.2
1314
jacksonVersion=2.17.2
15+
javaFormatVersion=0.0.43
1416
junitJupiterVersion=5.11.0
1517
kotlinVersion=1.9.25
1618
mavenVersion=3.9.4
1719
nativeBuildToolsVersion=0.10.3
20+
snakeYamlVersion=2.3
1821
springFrameworkVersion=6.2.0-RC1
1922
springFramework60xVersion=6.0.23
2023
tomcatVersion=10.1.30
21-
snakeYamlVersion=2.3
2224

2325
kotlin.stdlib.default.dependency=false

0 commit comments

Comments
 (0)