-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (54 loc) · 1.54 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
55
56
57
58
59
60
61
/**
* Plugins definitions
*/
buildscript {
repositories {
mavenLocal()
jcenter()
}
dependencies {
classpath("net.serenity-bdd:serenity-gradle-plugin:$serenityGradlePlugin")
}
}
plugins {
id 'idea'
id 'groovy'
}
apply plugin: 'net.serenity-bdd.aggregator'
/**
* Dependencies
*/
repositories {
mavenLocal()
jcenter()
}
dependencies {
// Logger
compile group: 'ch.qos.logback', name: 'logback-core', version: logbackVersion
compile group: 'ch.qos.logback', name: 'logback-classic', version: logbackVersion
compile group: 'org.jsoup', name: 'jsoup', version: jsoupVersion
// BDD: Cucumber - Serenity
compile("net.serenity-bdd:serenity-core:${serenityVersion}")
testCompile("net.serenity-bdd:serenity-rest-assured:${serenityVersion}")
testCompile("net.serenity-bdd:serenity-cucumber:${serenityCucumberVersion}")
testCompile("io.github.bonigarcia:webdrivermanager:${webdrivermanagerVersion}")
// Assertions
testCompile group: 'junit', name: 'junit', version: junitVersion
testCompile group: 'org.assertj', name: 'assertj-core', version: assertjVersion
}
/**
* Compilation and testing properties
*/
tasks.withType(GroovyCompile) {
options.encoding = "UTF-8" // for Java compilation
groovyOptions.encoding = "UTF-8" // for Groovy compilation
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:-options"
options.encoding = 'UTF-8'
}
test {
testLogging.showStandardStreams = true
ignoreFailures = true
}
compileJava.dependsOn clean