-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
48 lines (38 loc) · 1.83 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
apply plugin: "groovy"
version = "1.0"
description = "Java TDD"
sourceCompatibility = 11
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 {
implementation group: 'com.typesafe.akka', name: 'akka-actor_3', version: '2.7.0'
def cucu = '1.2.6'
def cucu1 = '1.2.5'
implementation group: 'info.cukes', name: 'cucumber-java', version: cucu
testImplementation group: 'info.cukes', name: 'cucumber-junit', version: cucu
testImplementation group: 'info.cukes', name: 'cucumber-java8', version: cucu1
testImplementation group: 'org.mockito', name: 'mockito-junit-jupiter', version: '4.9.0'
// mandatory dependencies for using Spock
implementation platform('org.apache.groovy:groovy-bom:4.0.5')
implementation 'org.apache.groovy:groovy'
testImplementation platform("org.spockframework:spock-bom:2.3-groovy-4.0")
testImplementation "org.spockframework:spock-core"
testImplementation "org.hamcrest:hamcrest-core:2.2" // only necessary if Hamcrest matchers are used
testRuntimeOnly 'net.bytebuddy:byte-buddy:1.12.17' // allows mocking of classes (in addition to interfaces)
testRuntimeOnly "org.objenesis:objenesis:3.3" // allows mocking of classes without default constructor (together with ByteBuddy or CGLIB)
// dependencies used by examples in this project
testRuntimeOnly "com.h2database:h2:2.1.214"
testImplementation "org.apache.groovy:groovy-sql"
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}