-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
54 lines (44 loc) · 1.56 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
53
54
plugins {
// https://github.com/erdi/idea-gradle-plugins
id "com.github.erdi.idea-base" version "2.1"
id "com.github.erdi.extended-idea" version "2.1"
}
allprojects {
apply plugin: 'idea'
group = 'info.treyturner.qa.demo'
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
tasks.withType(Test).all {
testLogging { // Log these test events to console
events "started", "skipped", "passed", "failed", "standardOut"
}
outputs.upToDateWhen { false } // Always run tests
/**
* Parallel execution by is disabled by default. Uncomment one of the following to enable:
*/
// Some OS and CPUs report twice as many cores due to HyperThreading, so we use:
//maxParallelForks(Runtime.runtime.availableProcessors().intdiv(2))
// Others report the correct number of physical cores, so we simply use:
//maxParallelForks(Runtime.runtime.availableProcessors())
}
}
subprojects {
apply plugin: 'groovy'
dependencies {
// Groovy
compile 'org.codehaus.groovy:groovy-all:2.5.8'
// Spock
compile 'org.spockframework:spock-core:1.3-groovy-2.5'
// Spock Reports
testCompile('com.athaydes:spock-reports:1.6.2') {
transitive = false // this avoids affecting your version of Groovy/Spock
}
// Logging via slf4j & logback
compile 'org.slf4j:slf4j-api:1.7.26'
compile 'ch.qos.logback:logback-core:1.2.3'
compile 'ch.qos.logback:logback-classic:1.2.3'
}
}