@@ -13,51 +13,40 @@ 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" , " jackson" , " junitJupiter" ,
21
- " kotlin" , " maven" ]. each {
22
- versions[it] = properties[it + " Version" ]
23
- }
24
- }
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 } " ))
43
- implementation(" com.fasterxml.jackson.core:jackson-databind:${ versions.jackson } " )
31
+ implementation(platform(" org.springframework:spring-framework-bom:${ springFrameworkVersion } " ))
32
+ implementation(" com.fasterxml.jackson.core:jackson-databind:${ jacksonVersion } " )
44
33
implementation(" com.gradle:develocity-gradle-plugin:3.17.2" )
45
34
implementation(" com.tngtech.archunit:archunit:1.3.0" )
46
- implementation(" commons-codec:commons-codec:${ versions.commonsCodec } " )
35
+ implementation(" commons-codec:commons-codec:${ commonsCodecVersion } " )
47
36
implementation(" de.undercouch.download:de.undercouch.download.gradle.plugin:5.5.0" )
48
37
implementation(" io.spring.javaformat:spring-javaformat-gradle-plugin:${ javaFormatVersion} " )
49
- implementation(" org.apache.maven:maven-embedder:${ versions.maven } " )
38
+ implementation(" org.apache.maven:maven-embedder:${ mavenVersion } " )
50
39
implementation(" org.asciidoctor:asciidoctor-gradle-jvm:4.0.2" )
51
- implementation(" org.jetbrains.kotlin:kotlin-gradle-plugin:${ versions.kotlin } " )
52
- implementation(" org.jetbrains.kotlin:kotlin-compiler-embeddable:${ versions.kotlin } " )
40
+ implementation(" org.jetbrains.kotlin:kotlin-gradle-plugin:${ kotlinVersion } " )
41
+ implementation(" org.jetbrains.kotlin:kotlin-compiler-embeddable:${ kotlinVersion } " )
53
42
implementation(" org.springframework:spring-context" )
54
43
implementation(" org.springframework:spring-core" )
55
44
implementation(" org.springframework:spring-web" )
56
45
implementation(" io.spring.nohttp:nohttp-gradle:0.0.11" )
57
46
58
- testImplementation(" org.assertj:assertj-core:${ versions.assertj } " )
59
- testImplementation(" org.hamcrest:hamcrest:${ versions.hamcrest } " )
60
- testImplementation(" org.junit.jupiter:junit-jupiter:${ versions.junitJupiter } " )
47
+ testImplementation(" org.assertj:assertj-core:${ assertjVersion } " )
48
+ testImplementation(" org.hamcrest:hamcrest:${ hamcrestVersion } " )
49
+ testImplementation(" org.junit.jupiter:junit-jupiter:${ junitJupiterVersion } " )
61
50
testImplementation(" org.springframework:spring-test" )
62
51
63
52
testRuntimeOnly(" org.junit.platform:junit-platform-launcher" )
0 commit comments