-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·48 lines (35 loc) · 1.71 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
apply plugin: "groovy"
version = "1.0"
description = "Spock Framework - Example Project"
// Spock works with Java 1.8 and above
sourceCompatibility = 1.8
repositories {
// Spock releases are available from Maven Central
mavenCentral()
// Spock snapshots are available from the Sonatype OSS snapshot repository
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
// mandatory dependencies for using Spock
implementation "org.codehaus.groovy:groovy:3.0.8"
testImplementation platform("org.spockframework:spock-bom:2.0-groovy-3.0")
testImplementation "org.spockframework:spock-core"
testImplementation "org.spockframework:spock-junit4" // you can remove this if your code does not rely on old JUnit 4 rules
// 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)
// dependencies used by examples in this project
testRuntimeOnly "com.h2database:h2:1.4.197"
implementation "org.codehaus.groovy:groovy-sql:3.0.8"
implementation group: 'com.amazonaws', name: 'aws-java-sdk', version: '1.12.22'
implementation group: 'commons-io', name: 'commons-io', version: '2.5'
implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
implementation group: 'org.codehaus.groovy', name: 'groovy-json', version: '3.0.8'
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}