-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
99 lines (83 loc) · 2.24 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
buildscript {
repositories {
jcenter()
}
}
plugins {
id 'com.github.kt3k.coveralls' version '2.8.4'
}
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'jacoco'
apply plugin: 'idea'
apply plugin: 'eclipse'
mainClassName = 'edu.wofford.Main'
repositories {
jcenter()
}
jar {
archiveBaseName = rootProject.name
manifest {
attributes 'Main-Class': application.mainClassName
}
}
dependencies {
implementation 'ch.qos.logback:logback-classic:1.2.3'
implementation 'org.slf4j:slf4j-api:1.7.26'
implementation 'com.github.mkolisnyk:cucumber-runner:1.3.4'
implementation 'org.assertj:assertj-swing:3.17.0'
testImplementation 'junit:junit:4.12'
testImplementation 'org.hamcrest:java-hamcrest:2.0.0.0'
testImplementation 'org.mockito:mockito-all:1.10.19'
testImplementation 'org.powermock:powermock-mockito-release-full:1.6.4'
testImplementation 'io.cucumber:cucumber-java:4.3.1'
}
tasks.withType(JavaCompile) {
options.compilerArgs += ['-proc:none', '-Xlint:unchecked', '-Xlint:deprecation']
}
jacoco {
toolVersion = "0.8.3"
}
jacocoTestReport {
reports {
html {
enabled true
}
xml {
enabled true
}
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
'**/edu/wofford/Main*',
'**/edu/wofford/ConsoleMain*',
'**/edu/wofford/GuiMain*']
)
}))
}
}
javadoc {
options.with {
links 'https://docs.oracle.com/javase/8/docs/api/'
}
exclude 'edu/wofford/Main*'
exclude 'edu/wofford/ConsoleMain*'
exclude 'edu/wofford/GuiMain*'
}
configurations {
cucumberRuntime {
extendsFrom testImplementation
}
}
task cucumber() {
dependsOn assemble, compileTestJava
doLast {
javaexec {
main = "cucumber.api.cli.Main"
classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
args = ['--plugin', 'html:build/reports/cucumber', '--glue', 'gradle.cucumber', 'src/test/resources']
}
}
timeout = Duration.ofMinutes(3)
}