-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
64 lines (50 loc) · 1.31 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
62
63
64
plugins {
id "com.github.samueltbrown.cucumber" version "0.9"
id 'com.github.johnrengelman.shadow' version '2.0.1'
}
apply plugin: 'java'
apply plugin: 'application'
apply plugin: "jacoco"
project.ext {
cucumberVersion = '1.2.5'
}
sourceCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
if (!hasProperty('mainClass')) {
ext.mainClass = 'main.Main'
}
repositories {
mavenCentral()
}
dependencies {
testCompile 'info.cukes:cucumber-java:' + cucumberVersion
testCompile 'info.cukes:cucumber-junit:' + cucumberVersion
testCompile 'info.cukes:cucumber-core:' + cucumberVersion
testCompile group: 'junit', name: 'junit', version: '4.10'
compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.7.2'
testCompile 'org.mockito:mockito-core:2.7.21'
}
mainClassName = 'main.Main'
run{
standardInput = System.in
}
test{
testLogging.showStandardStreams= true
finalizedBy jacocoTestReport
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it, exclude: ['main/**', '**/ItemHandler**', '**/CommentHandler**'])
})
}
}
jar {
manifest {
attributes 'Main-Class': 'main.Main'
}
}