From c56f26c264ae03f9392d05be539d397f49d707d7 Mon Sep 17 00:00:00 2001 From: chasegawa Date: Tue, 10 May 2022 13:22:05 -0700 Subject: [PATCH] SHIBUI-2264 fixed so that envers test run properly --- backend/build.gradle | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 {