forked from xebialabs/overthere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
53 lines (41 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
// build.gradle for overthere repository containing the overthere and itest-support projects
defaultTasks 'build'
allprojects {
version = '1.0.1'
group = 'com.xebialabs.overthere'
apply plugin: 'idea'
}
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
repositories {
mavenLocal()
mavenCentral()
mavenRepo urls: 'http://download.java.net/maven/2/'
}
apply from: 'https://github.com/xebialabs/deployit-common-build/raw/master/releaseable.gradle'
apply from: 'https://github.com/xebialabs/deployit-common-build/raw/master/artifacts.gradle'
sourceCompatibility = 1.6
targetCompatibility = 1.6
configurations {
compile {
transitive = false
}
}
test {
excludes = ["**/*Itest.*"]
}
task itest(type: Test) {
includes = ['**/*Itest.*']
testResultsDir = file("${buildDir}/itest-results")
copyProjectPropertyToSystemProperty(project, systemProperties, 'itests')
copyProjectPropertyToSystemProperty(project, systemProperties, 'aws.endpoint')
copyProjectPropertyToSystemProperty(project, systemProperties, 'aws.accessKey')
copyProjectPropertyToSystemProperty(project, systemProperties, 'aws.secretKey')
}
}
def copyProjectPropertyToSystemProperty(project, systemProperties, name) {
if(project.hasProperty(name)) {
systemProperties[name] = project.getProperty(name)
}
}