Skip to content

Commit

Permalink
#937 Gradle config fixes for Spock tests to run
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdos committed Jan 16, 2025
1 parent b5cb6b4 commit c6bcbbb
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ plugins {
id "com.gorylenko.gradle-git-properties" version "2.4.1"
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.12.0'
id 'groovy'
// id "com.github.nbaztec.coveralls-jacoco" version "1.2.15"
}

Expand Down Expand Up @@ -125,27 +126,28 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-autoconfigure:2.7.0'

if (inplace) {

implementation project(':ala-ws-spring-security')
implementation project(':ala-ws-security')

} else {

implementation 'au.org.ala:ala-ws-spring-security:6.3.0-SNAPSHOT'
}

implementation 'org.codehaus.groovy:groovy-all:3.0.11'

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testImplementation 'org.junit.jupiter:junit-jupiter-migrationsupport:5.7.0'
testImplementation 'org.junit.vintage:junit-vintage-engine:5.7.0'
testImplementation 'org.codehaus.groovy:groovy-all:3.0.11'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1'
testImplementation 'org.junit.jupiter:junit-jupiter-migrationsupport:5.9.1'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.9.1'
testImplementation 'org.junit.platform:junit-platform-launcher'
testImplementation 'org.junit.platform:junit-platform-commons'
testImplementation 'org.junit.vintage:junit-vintage-engine:5.9.1'
// testImplementation 'junit:junit:4.13.1'
testImplementation 'org.apiguardian:apiguardian-api:1.1.0'
testImplementation 'junit:junit:4.13.1'
testImplementation 'org.mockito:mockito-core:3.4.4'
testImplementation 'org.powermock:powermock-module-junit4:2.0.7'
testImplementation 'org.powermock:powermock-api-mockito2:2.0.7'
testImplementation 'org.spockframework:spock-core:2.0-groovy-2.5'
testImplementation 'org.spockframework:spock-spring:2.0-groovy-2.5'
testImplementation 'org.spockframework:spock-core:2.3-groovy-3.0'
testImplementation 'org.spockframework:spock-spring:2.3-groovy-3.0'
testImplementation 'net.bytebuddy:byte-buddy:1.10.13'
testImplementation 'org.hamcrest:hamcrest:2.1'
testImplementation 'org.hamcrest:hamcrest-library:2.1'
Expand All @@ -161,7 +163,19 @@ dependencies {
providedRuntime 'org.glassfish:javax.el:3.0.0'
}

sourceSets {
test {
groovy {
srcDirs = ['src/test/java']
}
java {
srcDirs = ['src/test/java']
}
}
}

test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
Expand Down

0 comments on commit c6bcbbb

Please sign in to comment.