Skip to content

Commit 242f3b3

Browse files
committed
Use accessors to add dependencies
1 parent 11a49e5 commit 242f3b3

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

buildSrc/src/main/kotlin/testing-conventions.gradle.kts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
33
import org.gradle.internal.os.OperatingSystem
44

55
plugins {
6+
`java-library`
67
id("org.gradle.test-retry")
78
}
89

@@ -67,17 +68,17 @@ tasks.withType<Test>().configureEach {
6768
}
6869

6970
dependencies {
70-
"testImplementation"(dependencyFromLibs("assertj"))
71-
"testImplementation"(dependencyFromLibs("mockito"))
71+
testImplementation(dependencyFromLibs("assertj"))
72+
testImplementation(dependencyFromLibs("mockito"))
7273

7374
if (!project.name.startsWith("junit-jupiter")) {
74-
"testImplementation"(project(":junit-jupiter"))
75+
testImplementation(project(":junit-jupiter"))
7576
}
76-
"testImplementation"(testFixtures(project(":junit-jupiter-api")))
77+
testImplementation(testFixtures(project(":junit-jupiter-api")))
7778

78-
"testRuntimeOnly"(project(":junit-platform-engine"))
79-
"testRuntimeOnly"(project(":junit-platform-jfr"))
80-
"testRuntimeOnly"(project(":junit-platform-reporting"))
79+
testRuntimeOnly(project(":junit-platform-engine"))
80+
testRuntimeOnly(project(":junit-platform-jfr"))
81+
testRuntimeOnly(project(":junit-platform-reporting"))
8182

82-
"testRuntimeOnly"(bundleFromLibs("log4j"))
83+
testRuntimeOnly(bundleFromLibs("log4j"))
8384
}

0 commit comments

Comments
 (0)