-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
52 lines (43 loc) · 1017 Bytes
/
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
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
project.ext {
junitVersion = '4.12'
}
repositories {
jcenter()
}
dependencies {
compile 'com.google.guava:guava:20.0'
testCompile 'junit:junit:4.12'
testCompile group: 'commons-io', name: 'commons-io', version: '2.6'
}
mainClassName = 'io.github.gotonode.sorting.main.Main'
run {
standardInput = System.in
}
jar {
manifest {
attributes 'Main-Class': 'io.github.gotonode.sorting.main.Main'
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it, exclude: ['**/main/Main**'])
})
}
}
test {
testLogging.showStandardStreams = true
systemProperties System.getProperties()
}
checkstyleTest.enabled = false