@@ -16,56 +16,45 @@ java {
16
16
}
17
17
18
18
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(" -" )) {
31
20
repositories {
32
21
maven { url " https://repo.spring.io/milestone" }
33
22
maven { url " https://repo.spring.io/snapshot" }
34
23
}
35
24
}
36
25
37
26
checkstyle {
38
- toolVersion = " 10.12.4 "
27
+ toolVersion = " {checkstyleToolVersion} "
39
28
}
40
29
41
30
dependencies {
42
31
checkstyle(" com.puppycrawl.tools:checkstyle:${ checkstyle.toolVersion} " )
43
32
checkstyle(" io.spring.javaformat:spring-javaformat-checkstyle:${ javaFormatVersion} " )
44
33
45
- implementation(platform(" org.springframework:spring-framework-bom:${ versions.springFramework } " ))
34
+ implementation(platform(" org.springframework:spring-framework-bom:${ springFrameworkVersion } " ))
46
35
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 } " )
48
37
implementation(" com.github.node-gradle:gradle-node-plugin:3.5.1" )
49
38
implementation(" com.gradle:develocity-gradle-plugin:3.17.2" )
50
39
implementation(" com.tngtech.archunit:archunit:1.3.0" )
51
- implementation(" commons-codec:commons-codec:${ versions.commonsCodec } " )
40
+ implementation(" commons-codec:commons-codec:${ commonsCodecVersion } " )
52
41
implementation(" de.undercouch.download:de.undercouch.download.gradle.plugin:5.5.0" )
53
42
implementation(" io.spring.gradle.antora:spring-antora-plugin:0.0.1" )
54
43
implementation(" io.spring.javaformat:spring-javaformat-gradle-plugin:${ javaFormatVersion} " )
55
44
implementation(" io.spring.nohttp:nohttp-gradle:0.0.11" )
56
45
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 } " )
58
47
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 } " )
61
50
implementation(" org.springframework:spring-context" )
62
51
implementation(" org.springframework:spring-core" )
63
52
implementation(" org.springframework:spring-web" )
64
- implementation(" org.yaml:snakeyaml:${ versions.snakeYaml } " )
53
+ implementation(" org.yaml:snakeyaml:${ snakeYamlVersion } " )
65
54
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 } " )
69
58
testImplementation(" org.springframework:spring-test" )
70
59
71
60
testRuntimeOnly(" org.junit.platform:junit-platform-launcher" )
0 commit comments