forked from Transmode/gradle-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (60 loc) · 1.64 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
apply plugin: 'groovy'
buildscript {
// inspired by https://github.com/Netflix/gradle-template
apply from: file('gradle/buildscript.gradle'), to: buildscript
}
repositories {
jcenter()
}
apply from: file('gradle/idea.gradle')
apply from: file('gradle/publish.gradle')
task wrapper(type: Wrapper) {
gradleVersion = '2.0'
}
sourceSets {
integTest {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
groovy {
srcDir 'src/integTest/groovy'
}
resources {
srcDir 'src/integTest/resources'
}
}
}
configurations {
integTestCompile.extendsFrom testCompile
integTestRuntime.extendsFrom testRuntime
}
dependencies {
compile gradleApi()
compile localGroovy()
compile 'com.google.guava:guava:17.0'
compile 'com.google.guava:guava:17.0'
compile 'com.github.docker-java:docker-java:0.9.0'
testCompile 'junit:junit-dep:4.11'
testCompile 'org.hamcrest:hamcrest-all:1.3'
}
task integTest(type: Test) {
group = 'verification'
description = 'Runs the integration tests.'
testClassesDir = sourceSets.integTest.output.classesDir
classpath = sourceSets.integTest.runtimeClasspath
}
// run integration tests after unit tests if both are scheduled for execution
integTest.mustRunAfter test
check.dependsOn(integTest)
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
classifier = 'javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}