summaryrefslogtreecommitdiff
path: root/buildSrc/src/main/kotlin/testing-conventions.gradle.kts
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-07 13:34:51 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-07 13:34:51 +0200
commitefea162372be99beb4de90929629c7ebccdb8d84 (patch)
tree068a38613d29bdbd4fe39aee90fde86343c656f3 /buildSrc/src/main/kotlin/testing-conventions.gradle.kts
parent324d7eccf5892a509dc76c7abcecf20fec09a877 (diff)
build: Access version catalog from buildSrc
This change adds a workaround to the build configuration so that we can access the version catalog from pre-compiled scripts in buildSrc. In this way, we can use the version catalog everywhere. This workaround is necessary until https://github.com/gradle/gradle/issues/15383 is fixed.
Diffstat (limited to 'buildSrc/src/main/kotlin/testing-conventions.gradle.kts')
-rw-r--r--buildSrc/src/main/kotlin/testing-conventions.gradle.kts10
1 files changed, 6 insertions, 4 deletions
diff --git a/buildSrc/src/main/kotlin/testing-conventions.gradle.kts b/buildSrc/src/main/kotlin/testing-conventions.gradle.kts
index f129c282..7d344500 100644
--- a/buildSrc/src/main/kotlin/testing-conventions.gradle.kts
+++ b/buildSrc/src/main/kotlin/testing-conventions.gradle.kts
@@ -34,8 +34,10 @@ tasks.test {
}
dependencies {
- testImplementation("org.junit.jupiter:junit-jupiter-api:${versions.junitJupiter}")
- testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${versions.junitJupiter}")
- testImplementation("org.junit.jupiter:junit-jupiter-params:${versions.junitJupiter}")
- testImplementation("io.mockk:mockk:${versions.mockk}")
+ val libs = Libs(project)
+
+ testImplementation(libs["junit-jupiter-api"])
+ testImplementation(libs["junit-jupiter-params"])
+ testImplementation(libs["mockk"])
+ testRuntimeOnly(libs["junit-jupiter-engine"])
}