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