Skip to content

Commit f8c8c1c

Browse files
committed
Tidy up test dependencies
1 parent e5c5f42 commit f8c8c1c

File tree

22 files changed

+78
-73
lines changed

22 files changed

+78
-73
lines changed

annotations/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ description = 'Neo4j Graph Data Science :: Annotations'
44

55
group = 'org.neo4j.gds'
66

7+
test {
8+
useJUnitPlatform()
9+
}
10+
711
dependencies {
812
annotationProcessor openGds.recordBuilder
913
annotationProcessor openGds.immutables.builder
@@ -16,6 +20,7 @@ dependencies {
1620
testCompileOnly openGds.jetbrains.annotations
1721

1822
testImplementation platform(openGds.junit5bom)
19-
testImplementation openGds.junit5.jupiter
20-
testImplementation openGds.assertj.core
23+
testImplementation openGds.bundles.test.basic
24+
25+
testRuntimeOnly openGds.bundles.test.platforms
2126
}

applications/algorithms/machinery/build.gradle

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ dependencies {
3030
implementation project(':string-formatting')
3131
implementation project(':termination')
3232

33-
testImplementation openGds.assertj.core
3433
testImplementation platform(openGds.junit5bom)
35-
testImplementation openGds.junit5.jupiter.api
36-
testImplementation openGds.junit5.jupiter.engine
37-
testImplementation openGds.junit5.jupiter.params
38-
testImplementation openGds.mockito.junit.jupiter
34+
testImplementation openGds.bundles.test.mocking
35+
36+
testRuntimeOnly openGds.bundles.test.platforms
3937
}

applications/algorithms/path-finding/build.gradle

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ dependencies {
3232

3333
// Test dependencies
3434
testImplementation platform(openGds.junit5bom)
35-
testImplementation openGds.assertj.core
36-
testImplementation openGds.junit5.jupiter.api
37-
testImplementation openGds.junit5.jupiter.engine
38-
testImplementation openGds.junit5.jupiter.params
39-
testImplementation openGds.mockito.junit.jupiter
35+
testImplementation openGds.bundles.test.mocking
36+
37+
testRuntimeOnly openGds.bundles.test.platforms
4038
}

collections-memory-estimation/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ dependencies {
99
implementation project(':collections')
1010

1111
testImplementation platform(openGds.junit5bom)
12-
testImplementation openGds.junit5.jupiter
13-
testImplementation openGds.junit5.migration
14-
testImplementation openGds.assertj.core
12+
testImplementation openGds.bundles.test.basic
1513
testImplementation openGds.qaladatagen
14+
15+
testRuntimeOnly openGds.bundles.test.platforms
1616
}

collections/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ dependencies {
1212
implementation openGds.hppc
1313

1414
testImplementation platform(openGds.junit5bom)
15-
testImplementation openGds.junit5.jupiter
16-
testImplementation openGds.junit5.migration
17-
testImplementation openGds.assertj.core
15+
testImplementation openGds.bundles.test.basic
16+
1817
testImplementation openGds.qaladatagen
1918
testImplementation openGds.hamcrest
19+
20+
testRuntimeOnly openGds.bundles.test.platforms
2021
}
2122

2223
sourceSets {

config-generator/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ dependencies {
2424

2525
testImplementation platform(openGds.junit5bom)
2626
testImplementation project(':core-test-utils')
27-
testImplementation openGds.junit5.jupiter
28-
testImplementation openGds.junit5.migration
2927
testImplementation openGds.google.testing.compile
28+
testImplementation openGds.bundles.test.basic
29+
30+
testRuntimeOnly openGds.bundles.test.platforms
3031
}

defaults-and-limits-configuration/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies {
1212
implementation project(':string-formatting')
1313

1414
testImplementation platform(openGds.junit5bom)
15-
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api'
16-
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine'
17-
testImplementation openGds.assertj.core
15+
testImplementation openGds.bundles.test.basic
16+
17+
testRuntimeOnly openGds.bundles.test.platforms
1818
}

gds-values/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies {
77
api project(':graph-projection-api')
88
compileOnly openGds.jetbrains.annotations
99
testImplementation platform(openGds.junit5bom)
10-
testImplementation openGds.junit.pioneer
11-
testImplementation openGds.junit5.jupiter.engine
12-
testImplementation openGds.assertj.core
10+
testImplementation openGds.bundles.test.basic
11+
12+
testRuntimeOnly openGds.bundles.test.platforms
1313
}

gradle/libs.versions.toml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jol = "0.17"
3030
jqwik = "1.9.0"
3131
junit-pioneer = "2.2.0"
3232
junit5bom = "5.11.0"
33-
junit5 = "5.11.0"
3433
log4j = "2.20.0"
3534
memoryfilesystem = "2.8.0"
3635
mockito-junit-jupiter = "5.13.0"
@@ -85,7 +84,7 @@ jqwik = { module = "net.jqwik:jqwik", version.ref = "jqwik" }
8584
junit-pioneer = { module = "org.junit-pioneer:junit-pioneer", version.ref = "junit-pioneer" }
8685
junit5-jupiter = { module = "org.junit.jupiter:junit-jupiter" }
8786
junit5-jupiter-api = { module = "org.junit.jupiter:junit-jupiter-api" }
88-
junit5-jupiter-engine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junit5" }
87+
junit5-jupiter-engine = { module = "org.junit.jupiter:junit-jupiter-engine" }
8988
junit5-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params" }
9089
junit5-migration = { module = "org.junit.jupiter:junit-jupiter-migrationsupport" }
9190
junit5-platform = { module = "org.junit.platform:junit-platform-launcher" }
@@ -112,3 +111,14 @@ google-protobuf = "com.google.protobuf:0.9.4"
112111
nebula-dependencies = "nebula.info-dependencies:11.4.1"
113112
shadowjar = "com.gradleup.shadow:8.3.2"
114113
spawn = "ch.kk7.spawn:1.0.20180924200750"
114+
115+
[bundles]
116+
test-basic = [ "junit5-jupiter", "assertj-core" ]
117+
test-mocking = [ "junit5-jupiter", "assertj-core", "mockito-junit-jupiter" ]
118+
test-platforms = [
119+
"junit5-platform",
120+
# `jqwik` is declared as test engine in `defaults-java.gradle`
121+
# and exposed as transitive dependency of `test-utils`
122+
# we don't need to bring the whole `test-utils` module everywhere
123+
"jqwik"
124+
]

graph-dimensions/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies {
1919
testCompileOnly openGds.immutables.value.annotations
2020

2121
testImplementation platform(openGds.junit5bom)
22-
testImplementation openGds.junit5.jupiter
23-
testImplementation openGds.junit5.migration
24-
testImplementation openGds.assertj.core
22+
testImplementation openGds.bundles.test.basic
23+
24+
testRuntimeOnly openGds.bundles.test.platforms
2525
}

0 commit comments

Comments
 (0)