Skip to content

Commit

Permalink
SHIBUI-2264
Browse files Browse the repository at this point in the history
fixed so that envers test run properly
  • Loading branch information
chasegawa committed May 10, 2022
1 parent e917dd0 commit c56f26c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ apply plugin: 'jacoco'
sourceCompatibility = 11
targetCompatibility = 11

test {
useJUnitPlatform() // Needed by spock to find specification tests
}

repositories {
jcenter()
maven {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -222,6 +222,7 @@ dependencies {
enversTestCompile configurations.testCompile
enversTestCompile configurations.testImplementation

enversTestRuntime configurations.testImplementation
enversTestRuntime configurations.runtime
enversTestRuntime configurations.testRuntime
}
Expand Down Expand Up @@ -249,6 +250,7 @@ task enversTest(type: Test) {
classpath = sourceSets.enversTest.runtimeClasspath
systemProperties = System.properties
systemProperties['user.dir'] = workingDir
useJUnitPlatform()
}

check {
Expand Down

0 comments on commit c56f26c

Please sign in to comment.