@@ -30,27 +30,27 @@ fun String.runCommand(currentWorkingDir: File = file("./")): String {
30
30
buildscript {
31
31
dependencies {
32
32
listOf (
33
- " com.squareup. okhttp3:okhttp: ${project.property( " okhttp3.version " )} " ,
34
- " com.google. guava:guava: ${project.property( " guava.version " )} " ,
35
- " com .google.googlejavaformat:google- java-format: ${project.property( " google-java- format.version " )} " ,
36
- " org.yaml: snakeyaml: ${project.property( " snakeyaml.version " )} "
33
+ libs. okhttp3,
34
+ libs. guava,
35
+ libs .google.java. format,
36
+ libs. snakeyaml
37
37
).forEach { classpath(it) }
38
38
}
39
39
}
40
40
41
41
plugins {
42
42
id(" java" )
43
- id( " com.heroku.sdk. heroku- gradle" ) version " 2.0.0 "
44
- id( " io. spring.dependency- management" ) version " 1.1.0 "
45
- id( " org.springframework. boot" ) version " 3.1.0 "
46
- id( " com.gorylenko .gradle- git- properties" ) version " 2.4.1 "
43
+ alias(libs.plugins. heroku. gradle)
44
+ alias(libs.plugins. spring.dependency. management)
45
+ alias(libs.plugins.spring. boot)
46
+ alias(libs.plugins .gradle. git. properties)
47
47
id(" checkstyle" )
48
48
id(" pmd" )
49
- id( " com.github .spotbugs" ) version " 5.0.13 "
49
+ alias(libs.plugins .spotbugs.gradle)
50
50
id(" jacoco" )
51
- id( " com.github.ben-manes. versions" ) version " 0.44.0 "
52
- id( " ca.cutterslade.analyze" )
53
- id( " com.bmuschko .docker-remote-api " ) version " 9.0.1 "
51
+ alias(libs.plugins. versions.gradle)
52
+ alias(libs.plugins. ca.cutterslade.analyze)
53
+ alias(libs.plugins .docker.gradle)
54
54
}
55
55
56
56
java {
@@ -78,48 +78,48 @@ configurations["intTestRuntimeOnly"].extendsFrom(configurations.runtimeOnly.get(
78
78
79
79
checkstyle {
80
80
configFile = project.file(" config/checkstyle/checkstyle.xml" )
81
- toolVersion = project.property( " checkstyle.version " ).toString ()
81
+ toolVersion = libs.versions. checkstyle.get ()
82
82
}
83
83
84
84
jacoco {
85
- toolVersion = project.property( " jacoco.version " ).toString ()
85
+ toolVersion = libs.versions. jacoco.get ()
86
86
}
87
87
88
88
pmd {
89
89
isConsoleOutput = true
90
90
isIgnoreFailures = false
91
91
ruleSets = listOf ()
92
92
ruleSetFiles = files(" config/pmd/pmd.xml" )
93
- toolVersion = project.property( " pmd.version " ).toString ()
93
+ toolVersion = libs.versions. pmd.get ()
94
94
}
95
95
96
96
spotbugs {
97
97
ignoreFailures.set(false )
98
98
setEffort(" max" )
99
99
setReportLevel(" low" )
100
100
showProgress.set(false )
101
- toolVersion.set(project.property( " spotbugs.version " ).toString ())
101
+ toolVersion.set(libs.versions. spotbugs.get ())
102
102
}
103
103
104
104
// Project Dependencies
105
105
dependencies {
106
106
listOf (
107
- " com .newrelic.agent.java:newrelic-agent: ${project.property( " newrelic.version " )} "
107
+ libs .newrelic.agent
108
108
).forEach { agent(it) }
109
109
110
110
listOf (
111
- " com.github. spotbugs:spotbugs: ${project.property( " spotbugs.version " )} "
111
+ libs. spotbugs
112
112
).forEach { spotbugs(it) }
113
113
114
114
listOf (
115
- " com.github. spotbugs:spotbugs-annotations: ${project.property( " spotbugs.version " )} " ,
115
+ libs. spotbugs.annotations ,
116
116
" com.fasterxml.jackson.core:jackson-annotations" ,
117
117
" com.fasterxml.jackson.core:jackson-core" ,
118
118
" com.fasterxml.jackson.core:jackson-databind" ,
119
- " com.fasterxml. jackson.datatype:jackson-datatype-jsr310: ${project.property( " jackson-datatype- jsr310.version " )} " ,
120
- " com.google. guava:guava: ${project.property( " guava.version " )} " ,
121
- " com .newrelic.agent.java:newrelic- api: ${project.property( " newrelic.version " )} " ,
122
- " com.newrelic.telemetry: micrometer-registry-new-relic: ${project.property( " micrometer- registry- new-relic.version " )} " ,
119
+ libs. jackson.datatype. jsr310,
120
+ libs. guava,
121
+ libs .newrelic.api,
122
+ libs. micrometer. registry. new.relic ,
123
123
" io.micrometer:micrometer-core" ,
124
124
" io.projectreactor:reactor-core" ,
125
125
" org.slf4j:slf4j-api" ,
@@ -140,12 +140,12 @@ dependencies {
140
140
" org.springframework.security:spring-security-config" ,
141
141
" org.thymeleaf:thymeleaf" ,
142
142
" org.thymeleaf:thymeleaf-spring6" ,
143
- " com.github.scribejava:scribejava-core: ${project.property( " scribejava-core.version " )} " ,
144
- " com .twitter:twitter-api-java-sdk: ${project.property( " twitter- api- java-sdk.version " )} "
143
+ libs.scribe.java ,
144
+ libs .twitter. api. java.sdk
145
145
).forEach { implementation(it) }
146
146
147
147
listOf (
148
- " org.springframework.boot:spring-boot-properties-migrator"
148
+ " org.springframework.boot:spring-boot-properties-migrator"
149
149
).forEach { runtimeOnly(it) }
150
150
151
151
listOf (
@@ -162,7 +162,7 @@ dependencies {
162
162
}
163
163
164
164
listOf (
165
- " commons-io:commons-io: ${project.property( " commons-io.version " )} " ,
165
+ libs. commons.io ,
166
166
" com.github.tomakehurst:wiremock-jre8-standalone" ,
167
167
" org.apache.httpcomponents:httpclient" ,
168
168
" org.apache.httpcomponents:httpcore" ,
@@ -173,8 +173,8 @@ dependencies {
173
173
" org.junit.jupiter:junit-jupiter-api" ,
174
174
" org.junit.jupiter:junit-jupiter-params" ,
175
175
" org.junit.platform:junit-platform-commons" ,
176
- " org.springframework.cloud: spring-cloud-starter-contract-stub-runner: ${project.property( " spring- cloud- starter- contract- stub-runner.version " )} " ,
177
- " org .mockito:mockito-core: ${project.property( " mockito- core.version " )} "
176
+ libs. spring. cloud. starter. contract. stub.runner ,
177
+ libs .mockito. core
178
178
).forEach {
179
179
testImplementation(it)
180
180
}
0 commit comments