-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
55 lines (45 loc) · 1.29 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
apply plugin: 'groovy'
apply plugin: 'maven'
group = 'com.alexecollins.docker'
version = '1.0.0-SNAPSHOT'
ext {
localRepoDir = new File(buildDir, 'localRepo')
generatedTestResourcesDir = new File(buildDir, 'testResources')
}
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
compile gradleApi()
compile('com.alexecollins.docker:docker-java-orchestration-core:2.11.0-SNAPSHOT')
testCompile localGroovy()
testCompile 'org.spockframework:spock-core:0.7-groovy-2.0', {exclude module: 'groovy-all'}
}
configurations {
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
}
sourceSets {
integrationTest {
}
}
task installLocalRepo(type: Upload) {
description "Installs the artifacts to a local repo for testing"
configuration = configurations['archives']
repositories {
mavenDeployer {
repository(url: localRepoDir.toURI())
}
}
}
task integrationTest(type: Test) {
dependsOn installLocalRepo
testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath
mustRunAfter test
}
install.dependsOn integrationTest