Skip to content

Commit

Permalink
#309 Update dependencies to use Spock (with JUnit 4)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Jan 24, 2024
1 parent 14b8fbd commit 534288b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ allprojects {
}

subprojects {
test {
useJUnitPlatform()
}

ext {
publishVariant = { String variant ->
publishing {
Expand Down Expand Up @@ -80,6 +84,10 @@ configure(subprojects) {
dependencies {
implementation platform(libs.groovy.bom)
implementation 'org.codehaus.groovy:groovy'

testImplementation platform (libs.spock)
testImplementation "org.spockframework:spock-core"
testImplementation "org.spockframework:spock-junit4"
}

java {
Expand Down
3 changes: 1 addition & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ groovy-version = "3.0.17"
# 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 = "junit:junit:4.13.2"
slf4j-api = "org.slf4j:slf4j-simple:2.0.7"
slf4j-simple = "org.slf4j:slf4j-simple:2.0.7"
spock = "org.spockframework:spock-core:2.3-groovy-3.0"
spock = "org.spockframework:spock-bom:2.3-groovy-3.0"

[plugins]
gradle-versions = { id= "com.github.ben-manes.versions", version = "0.50.0" }
Expand Down
6 changes: 0 additions & 6 deletions htmlSanityCheck-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
dependencies {
testImplementation(
libs.junit,
libs.spock,
libs.slf4j.simple
)

implementation libs.slf4j.api

// jsoup is our awesome html parser, see jsoup.org
Expand Down
3 changes: 0 additions & 3 deletions htmlSanityCheck-gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
dependencies {
testImplementation(
libs.junit,
libs.spock,

gradleTestKit()
)

Expand Down

0 comments on commit 534288b

Please sign in to comment.