Skip to content

Commit 544e8ae

Browse files
committed
Extract versions of plugins and deps into variables
1 parent 223585c commit 544e8ae

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

build.gradle.kts

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22

3+
val springBootVersion = "3.2.2"
4+
val embeddedRedisVersion = "1.4.1"
5+
val mockkVersion = "1.13.9"
6+
37
plugins {
4-
id("io.spring.dependency-management") version "1.1.4"
5-
kotlin("jvm") version "1.9.22"
6-
id("com.adarshr.test-logger") version "4.0.0"
8+
val springDependencyManagementVersion = "1.1.4"
9+
val kotlinVersion = "1.9.22"
10+
val adarshrTestLoggerVersion = "4.0.0"
11+
val sonarqubeVersion = "4.4.1.3373"
12+
13+
id("io.spring.dependency-management") version springDependencyManagementVersion
14+
kotlin("jvm") version kotlinVersion
15+
id("com.adarshr.test-logger") version adarshrTestLoggerVersion
716
id("jacoco")
8-
id("org.sonarqube") version "4.4.1.3373"
17+
id("org.sonarqube") version sonarqubeVersion
918
}
1019

1120
group = "io.github.tobi.laa"
@@ -29,12 +38,12 @@ repositories {
2938

3039
dependencyManagement {
3140
imports {
32-
mavenBom("org.springframework.boot:spring-boot-dependencies:3.2.2")
41+
mavenBom("org.springframework.boot:spring-boot-dependencies:$springBootVersion")
3342
}
3443
}
3544

3645
dependencies {
37-
api("com.github.codemonstur:embedded-redis:1.4.1")
46+
api("com.github.codemonstur:embedded-redis:$embeddedRedisVersion")
3847
implementation("org.jetbrains.kotlin:kotlin-reflect")
3948
implementation("org.springframework.boot:spring-boot-test")
4049
implementation("org.springframework:spring-test")
@@ -45,7 +54,7 @@ dependencies {
4554
testImplementation("org.junit.jupiter:junit-jupiter")
4655
testImplementation("org.springframework.boot:spring-boot-starter-data-redis")
4756
testImplementation("org.springframework.boot:spring-boot-starter-test")
48-
testImplementation("io.mockk:mockk:1.13.9")
57+
testImplementation("io.mockk:mockk:$mockkVersion")
4958
}
5059

5160
tasks.withType<KotlinCompile> {

0 commit comments

Comments
 (0)