diff --git a/build.gradle b/build.gradle index a66efb30..db786557 100644 --- a/build.gradle +++ b/build.gradle @@ -15,36 +15,19 @@ plugins { alias(libs.plugins.plugin.publish) apply false alias(libs.plugins.versions) alias(libs.plugins.license) - id 'java-gradle-plugin' id 'java-library' id 'groovy' id 'idea' } -allprojects { - configurations.configureEach { - resolutionStrategy { - preferProjectModules() - - enableDependencyVerification() - - eachDependency { details -> - if (details.requested.group == 'org.jetbrains.kotlin') { - details.useVersion libs.versions.kotlin.get() - } - } - } - } - - tasks.withType(Wrapper).configureEach { - distributionType = Wrapper.DistributionType.ALL - } +tasks.withType(Wrapper).configureEach { + distributionType = Wrapper.DistributionType.ALL +} - idea { - module { - downloadSources = true - downloadJavadoc = true - } +idea { + module { + downloadSources = true + downloadJavadoc = true } } @@ -120,5 +103,7 @@ subprojects { def maxWorkerCount = gradle.startParameter.maxWorkerCount maxParallelForks = (maxWorkerCount < 2) ? 1 : maxWorkerCount / 2 + + useJUnitPlatform() // Ensure JUnit Platform is used if you are using JUnit 5 or Spock 2.x } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b1f4a8a1..5def1c47 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -18,5 +18,5 @@ kotlin-bom = { module = "org.jetbrains.kotlin:kotlin-bom", version.ref = "kotlin kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin" } kotlinx-html = { module = "org.jetbrains.kotlinx:kotlinx-html-jvm", version = "0.11.0" } maven-model = { module = "org.apache.maven:maven-model", version = "3.9.9" } -spock = { module = "org.spockframework:spock-junit4", version = "2.4-M1-groovy-3.0" } +spock = { module = "org.spockframework:spock-junit4", version = "2.4-M4-groovy-3.0" } xmlunit = { module = "org.xmlunit:xmlunit-matchers", version = "2.10.0" }