forked from testinfected/molecule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (50 loc) · 1.43 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
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.7'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.0'
}
}
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
apply from: 'gradle/publish.gradle'
defaultTasks 'build'
group = 'com.vtence.molecule'
version = '0.9-SNAPSHOT'
sourceCompatibility = 1.6
targetCompatibility = 1.6
def libs = [
simple : 'org.simpleframework:simple-http:6.0.1',
jmustache : 'com.samskivert:jmustache:1.9',
hamcrest_all : 'org.hamcrest:hamcrest-all:1.3',
junit : 'junit:junit:4.11@jar',
jmock : 'org.jmock:jmock:2.6.0@jar',
jmock_junit4 : 'org.jmock:jmock-junit4:2.6.0@jar',
juniversal_chardet: 'com.googlecode.juniversalchardet:juniversalchardet:1.0.3',
]
repositories {
mavenCentral()
}
dependencies {
compile libs.simple, optional
compile libs.jmustache, optional
testCompile libs.hamcrest_all
testCompile libs.junit
testCompile libs.jmock
testCompile libs.jmock_junit4
testCompile libs.juniversal_chardet
}
task 'version' << {
println version
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
task coverage(dependsOn: ['test', 'jacocoTestReport'])