-
Notifications
You must be signed in to change notification settings - Fork 142
/
build.gradle
87 lines (69 loc) · 2.03 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
apply plugin: 'groovy'
apply plugin: 'jacoco'
buildscript {
// inspired by https://github.com/Netflix/gradle-template
apply from: file('gradle/buildscript.gradle'), to: buildscript
}
repositories {
maven {
url = "http://jcenter.bintray.com"
}
}
apply from: file('gradle/idea.gradle')
apply from: file('gradle/publish.gradle')
sourceSets {
integTest {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
}
}
configurations {
integTestCompile.extendsFrom testCompile
integTestRuntime.extendsFrom testRuntime
}
dependencies {
compile gradleApi()
compile localGroovy()
compile 'com.google.guava:guava:17.0'
compile 'com.github.docker-java:docker-java:2.2.0'
testCompile 'junit:junit-dep:4.11'
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'org.mockito:mockito-core:1.9.5'
}
task integTest(type: Test) {
group = 'verification'
description = 'Runs the integration tests.'
testClassesDirs = sourceSets.integTest.output.classesDirs
classpath = sourceSets.integTest.runtimeClasspath
//reports.html.dir = file("${reporting.baseDir}/integTests")
//reports.junitXml.destination = file("$buildDir/integTest-results")
}
// run integration tests after unit tests if both are scheduled for execution
integTest.mustRunAfter test
integTest.dependsOn publishToMavenLocal
check.dependsOn(integTest)
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
classifier = 'javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
/* Workaround for JDK bug (https://bugs.openjdk.java.net/browse/JDK-8051012)
regression bug in 7u65, fixed in 7u80 and 8u40
*/
compileTestGroovy.groovyOptions.forkOptions.jvmArgs = ['-noverify']
test.jvmArgs '-noverify'
integTest.jvmArgs '-noverify'
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}