-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (49 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.scuilion.syntastic:gradle-syntastic-plugin:0.3.+"
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1'
}
}
apply plugin: "java"
apply plugin: "jacoco"
apply plugin: "com.scuilion.syntastic"
apply plugin: 'com.github.kt3k.coveralls'
version = '1.0'
jar {
manifest {
attributes 'Implementation-Title': 'Sales Taxes',
'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
testCompile group: 'junit', name: 'junit', version: '4.+'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
}
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
exceptionFormat "full"
}
}
jacocoTestReport {
group = "Reporting"
description = "Generate Jacoco coverage reports after running tests."
additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
reports {
xml.enabled true
html.enabled true
}
}
task(run, dependsOn: 'classes', type: JavaExec) {
main = 'Main'
classpath = sourceSets.main.runtimeClasspath
}