forked from eucalyptus/n4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
111 lines (99 loc) · 3.17 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/*
* Gradle build for n4j
*
* To run a single test or test suite use:
*
* ./gradlew -Dtest.single=AllShortSuite -Dclcip=CLC_IP_ADDR test
*
* An example of a suite is Ec2Suite, an example test is
* TestEC2DescribeInstanceStatus.
*
* Results location:
*
* ./build/reports/tests/test/index.html
*/
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'java'
targetCompatibility = 1.8
sourceCompatibility = 1.8
repositories {
maven {
url 'https://pkgs.dev.azure.com/sjones4/eucalyptus/_packaging/maven/maven/v1'
content {
includeGroup('com.github.sjones4')
}
}
mavenCentral( )
}
sourceSets {
main {
java.srcDirs = []
groovy.srcDirs = []
}
test {
java {
srcDirs = []
}
groovy {
srcDirs = ['src/main/java']
}
}
}
compileJava {
options.debug = true
}
test {
description '''\
Run unit tests. To run quick tests use: ./gradlew -Dclcip=CLC_IP_ADDR test \
(pass -Dpassword, etc as needed)'''
testLogging.showStandardStreams =
Boolean.valueOf( System.getProperty( 'testsToConsole', 'true' ) )
[ 'clcip', 'user', 'password', 'endpoints', 'inifile', 'cache', 'n4j.image.hvm-url' ].each{
if ( System.getProperty( it ) ) systemProperty it, System.getProperty( it )
}
systemProperty 'sun.net.http.allowRestrictedHeaders', 'true'
filter {
includeTestsMatching '*' + System.getProperty( 'test.filter', 'com.eucalyptus.tests.suites.AllShortSuite' ) + '*'
}
onlyIf{ System.getProperty( 'test.filter' ) }
}
dependencies {
compile 'com.amazonaws:aws-java-sdk-autoscaling:[1.11.420,1.12)'
compile 'com.amazonaws:aws-java-sdk-cloudformation:[1.11.420,1.12)'
compile 'com.amazonaws:aws-java-sdk-cloudwatch:[1.11.420,1.12)'
compile 'com.amazonaws:aws-java-sdk-core:[1.11.420,1.12)'
compile 'com.amazonaws:aws-java-sdk-ec2:[1.11.420,1.12)'
compile 'com.amazonaws:aws-java-sdk-elasticloadbalancing:[1.11.420,1.12)'
compile 'com.amazonaws:aws-java-sdk-elasticloadbalancingv2:[1.11.420,1.12)'
compile 'com.amazonaws:aws-java-sdk-iam:[1.11.420,1.12)'
compile 'com.amazonaws:aws-java-sdk-route53:[1.11.420,1.12)'
compile 'com.amazonaws:aws-java-sdk-s3:[1.11.420,1.12)'
compile 'com.amazonaws:aws-java-sdk-simpleworkflow:[1.11.420,1.12)'
compile 'com.amazonaws:aws-java-sdk-sqs:[1.11.420,1.12)'
compile 'com.amazonaws:aws-java-sdk-sts:[1.11.420,1.12)'
compile 'com.github.sjones4:you-are-sdk:[1.2.2,1.3)'
compile 'com.google.guava:guava:24.0-jre'
compile 'com.jcraft:jsch:0.1.54'
compile 'junit:junit:4.+'
compile 'log4j:log4j:1.2.17'
compile 'com.sun.xml.bind:jaxb-core:2.3.0'
compile 'com.sun.xml.bind:jaxb-impl:2.3.0'
compile 'javax.xml.bind:jaxb-api:2.3.0'
compile 'org.codehaus.groovy:groovy:2.5.4'
compile 'org.codehaus.groovy:groovy-jsr223:2.5.4'
compile 'org.jclouds.api:ec2:1.6.+'
compile 'org.jclouds.driver:jclouds-log4j:1.6.+'
compile 'org.jclouds:jclouds-compute:1.6.+'
}
idea {
module {
excludeDirs = [
file( "$buildDir/classes" ),
]
}
project {
jdkName = '1.8'
languageLevel = '1.8'
}
}