Skip to content

Commit

Permalink
#309 Add JUnit(5) Vintage to make all tests work again
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Jan 24, 2024
1 parent a5a9e8a commit df5ddc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ configure(subprojects) {
testImplementation platform (libs.spock)
testImplementation "org.spockframework:spock-core"
testImplementation "org.spockframework:spock-junit4"

testImplementation libs.junit.vintage
}

java {
Expand All @@ -96,6 +98,10 @@ configure(subprojects) {
}
}

tasks.named('test', Test) {
useJUnitPlatform()
}

// The CodeNarc plugin performs quality checks on your project’s
// Groovy source files using CodeNarc and generates reports from these checks.
// apply plugin: 'codenarc'
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[versions]
groovy-version = "3.0.17"
junit5-version = "5.10.1"

[libraries]
# Use Groovy which corresponds to Gradle version (of hsc build)
groovy-bom = { module = "org.codehaus.groovy:groovy-bom", version.ref = "groovy-version" }
jsoup = "org.jsoup:jsoup:1.17.2"
junit-vintage = { module = "org.junit.vintage:junit-vintage-engine", version.ref = "junit5-version" }
slf4j-api = "org.slf4j:slf4j-api:2.0.11"
slf4j-nop = "org.slf4j:slf4j-nop:2.0.11"
spock = "org.spockframework:spock-bom:2.3-groovy-3.0"
Expand Down

0 comments on commit df5ddc9

Please sign in to comment.