diff --git a/backend/build.gradle b/backend/build.gradle index ad51cedb7..d1770d8ee 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -14,6 +14,10 @@ apply plugin: 'jacoco' sourceCompatibility = 11 targetCompatibility = 11 +test { + useJUnitPlatform() // Needed by spock to find specification tests +} + repositories { jcenter() maven { @@ -112,10 +116,6 @@ springBoot { generateLombokConfig.enabled = false -test { - useJUnitPlatform() -} - dependencies { // opensaml deps ['opensaml-saml-api', 'opensaml-saml-impl', 'opensaml-xmlsec-api', 'opensaml-xmlsec-impl'].each { @@ -222,6 +222,7 @@ dependencies { enversTestCompile configurations.testCompile enversTestCompile configurations.testImplementation + enversTestRuntime configurations.testImplementation enversTestRuntime configurations.runtime enversTestRuntime configurations.testRuntime } @@ -249,6 +250,7 @@ task enversTest(type: Test) { classpath = sourceSets.enversTest.runtimeClasspath systemProperties = System.properties systemProperties['user.dir'] = workingDir + useJUnitPlatform() } check {