@@ -10,47 +10,55 @@ repositories {
10
10
gradlePluginPortal()
11
11
}
12
12
13
- new File (new File (" $projectDir " ). parentFile, " gradle.properties" ). withInputStream {
13
+ sourceCompatibility = 17
14
+ targetCompatibility = 17
15
+
16
+ def versions = [:]
17
+ new File (projectDir. parentFile, " gradle.properties" ). withInputStream {
14
18
def properties = new Properties ()
15
19
properties. load(it)
16
- ext. set(" kotlinVersion" , properties[" kotlinVersion" ])
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(" -" )) {
28
+ repositories {
29
+ maven { url " https://repo.spring.io/milestone" }
30
+ maven { url " https://repo.spring.io/snapshot" }
31
+ }
17
32
}
18
-
19
- ext. set(" springFrameworkVersion" , " 6.0.10" )
20
-
21
- sourceCompatibility = 17
22
- targetCompatibility = 17
23
33
24
34
dependencies {
25
35
checkstyle " io.spring.javaformat:spring-javaformat-checkstyle:${ javaFormatVersion} "
26
36
27
- implementation(platform(" org.springframework:spring-framework-bom:${ springFrameworkVersion } " ))
37
+ implementation(platform(" org.springframework:spring-framework-bom:${ versions.springFramework } " ))
28
38
implementation(" com.diffplug.gradle:goomph:3.37.2" )
29
- implementation(" com.fasterxml.jackson.core:jackson-databind:2.11.4 " )
39
+ implementation(" com.fasterxml.jackson.core:jackson-databind:${ versions.jackson } " )
30
40
implementation(" com.gradle:gradle-enterprise-gradle-plugin:3.12.1" )
31
41
implementation(" com.tngtech.archunit:archunit:1.0.0" )
32
- implementation(" de.undercouch.download:de.undercouch.download.gradle.plugin:5.5.0" )
33
- implementation(" commons-codec:commons-codec:1.13" )
42
+ implementation(" commons-codec:commons-codec:${ versions.commonsCodec} " )
34
43
implementation(" io.spring.javaformat:spring-javaformat-gradle-plugin:${ javaFormatVersion} " )
35
- implementation(" org.apache.maven:maven-embedder:3.6.3 " )
44
+ implementation(" org.apache.maven:maven-embedder:${ versions.maven } " )
36
45
implementation(" org.asciidoctor:asciidoctor-gradle-jvm:3.3.2" )
37
- implementation(" org.jetbrains.kotlin:kotlin-gradle-plugin:${ kotlinVersion } " )
38
- implementation(" org.jetbrains.kotlin:kotlin-compiler-embeddable:${ kotlinVersion } " )
46
+ implementation(" org.jetbrains.kotlin:kotlin-gradle-plugin:${ versions.kotlin } " )
47
+ implementation(" org.jetbrains.kotlin:kotlin-compiler-embeddable:${ versions.kotlin } " )
39
48
implementation(" org.springframework:spring-context" )
40
49
implementation(" org.springframework:spring-core" )
41
50
implementation(" org.springframework:spring-web" )
42
51
43
- testImplementation(" org.apache.logging.log4j:log4j-core:2.17.1" )
44
- testImplementation(" org.assertj:assertj-core:3.11.1" )
45
- testImplementation(" org.hamcrest:hamcrest:2.2" )
46
- testImplementation(" org.junit.jupiter:junit-jupiter:5.6.0" )
52
+ testImplementation(" org.assertj:assertj-core:${ versions.assertj} " )
53
+ testImplementation(" org.hamcrest:hamcrest:${ versions.hamcrest} " )
54
+ testImplementation(" org.junit.jupiter:junit-jupiter:${ versions.junitJupiter} " )
47
55
testImplementation(" org.springframework:spring-test" )
48
56
49
57
testRuntimeOnly(" org.junit.platform:junit-platform-launcher" )
50
58
}
51
59
52
60
checkstyle {
53
- toolVersion = 8.11
61
+ toolVersion = " 10.12.4 "
54
62
}
55
63
56
64
gradlePlugin {
@@ -60,8 +68,8 @@ gradlePlugin {
60
68
implementationClass = " org.springframework.boot.build.processors.AnnotationProcessorPlugin"
61
69
}
62
70
architecturePlugin {
63
- id = " org.springframework.boot.architecture"
64
- implementationClass = " org.springframework.boot.build.architecture.ArchitecturePlugin"
71
+ id = " org.springframework.boot.architecture"
72
+ implementationClass = " org.springframework.boot.build.architecture.ArchitecturePlugin"
65
73
}
66
74
autoConfigurationPlugin {
67
75
id = " org.springframework.boot.auto-configuration"
0 commit comments