-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
52 lines (42 loc) · 1.19 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
plugins {
id 'groovy'
id 'idea'
id 'eclipse'
}
def spockVersion = '2.0-groovy-3.0'
def groovyVersion = '3.0.8'
repositories {
mavenCentral()
}
dependencies {
implementation "org.codehaus.groovy:groovy-all:$groovyVersion"
implementation 'commons-lang:commons-lang:2.6'
testImplementation "org.spockframework:spock-core:$spockVersion"
testImplementation "com.h2database:h2:1.4.197"
// optional dependencies for using Spock
testImplementation "org.hamcrest:hamcrest-core:2.2" // only necessary if Hamcrest matchers are used
testRuntimeOnly "net.bytebuddy:byte-buddy:1.11.0" // allows mocking of classes (in addition to interfaces)
testRuntimeOnly "org.objenesis:objenesis:3.2" // allows mocking of classes without default constructor (together with ByteBuddy or CGLIB)
// testRuntime "com.h2database:h2:1.2.147"
}
sourceSets {
main {
java { srcDirs = [] }
groovy { srcDir 'src' }
}
test {
java { srcDirs = [] }
groovy { srcDir 'test' }
}
}
idea {
project {
jdkName = '17'
}
}
tasks.withType(Test) {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}