-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
143 lines (122 loc) · 4.68 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
// -*- Groovy -*-
// build.gradle
//
// Gradle build script for EC-OpenStack plugin.
//
// Copyright (c) 2015 Electric Cloud, Inc.
// All rights reserved
buildscript {
repositories {
mavenCentral()
mavenLocal()
maven {
url 'https://nexus-internal.cloudbees.com/content/groups/mirror'
credentials {
username = System.getenv('NEXUS_USERNAME') ?: nexusUsername
password = System.getenv('NEXUS_PASSWORD') ?: nexusPassword
}
}
}
dependencies {
classpath group: 'com.electriccloud.plugins', name: 'flow-gradle-plugin', version: '2.4'
}
}
repositories {
mavenCentral()
mavenLocal()
maven {
url 'https://nexus-internal.cloudbees.com/content/repositories/snapshots'
credentials {
username = System.getenv('NEXUS_USERNAME') ?: nexusUsername
password = System.getenv('NEXUS_PASSWORD') ?: nexusPassword
}
}
maven {
url 'https://nexus-internal.cloudbees.com/service/local/staging/deploy/maven2'
credentials {
username = System.getenv('NEXUS_USERNAME') ?: nexusUsername
password = System.getenv('NEXUS_PASSWORD') ?: nexusPassword
}
}
maven {
url 'https://nexus-internal.cloudbees.com/content/groups/mirror'
credentials {
username = System.getenv('NEXUS_USERNAME') ?: nexusUsername
password = System.getenv('NEXUS_PASSWORD') ?: nexusPassword
}
}
}
configurations.all {
resolutionStrategy {
force group: 'com.electriccloud', name: 'ec-test', version: '10.1.0'
force group: 'com.electriccloud', name: 'commander-client', version: '10.1.0'
force group: 'com.electriccloud', name: 'commander-sdk', version: '6.1.2.1'
force group: 'com.electriccloud', name: 'ec_internal', version: '6.1.2.1'
force group: 'com.google.gwt', name: 'gwt-user', version: '2.5.0-ec3'
force group: 'com.google.gwt', name: 'gwt-dev', version: '2.5.0-ec1'
// force group: 'com.electriccloud', name: 'commander-client', version: '10.1.0'
// force group: 'com.electriccloud', name: 'commander-sdk', version: '6.1.2.1'
// force group: 'com.electriccloud', name: 'ec_internal', version: '6.1.2.1'
// force group: 'com.google.gwt', name: 'gwt-user', version: '2.5.0-ec3'
// force group: 'com.google.gwt', name: 'gwt-dev', version: '2.5.0-ec1'
cacheChangingModulesFor 0, 'seconds'
}
}
group = "com.electriccloud"
description = "Plugins : EC-OpenStack"
version = "1.4.0"
apply plugin: 'groovy'
apply plugin: 'flow-gradle-plugin'
apply plugin: 'license'
license {
header = file ('shortHeader.txt')
exclude "**/project.xml"
}
configurations {
// Configuration for the jar files we want
// to include in the plugin jar
includeInPluginJar
}
dependencies {
includeInPluginJar 'org.pacesys:openstack4j-core:2.0.5'
includeInPluginJar 'org.pacesys.openstack4j.connectors:openstack4j-okhttp:2.0.5'
testCompile 'junit:junit:[4,)'
testCompile 'org.pacesys:openstack4j-core:2.0.5'
testCompile 'org.pacesys.openstack4j.connectors:openstack4j-okhttp:2.0.5'
testCompile group: "net.schmizz", name: "sshj", version: "0.8.1"
testCompile group: "org.bouncycastle", name: "bcprov-jdk16", version: "1.46"
testCompile "org.codehaus.groovy:groovy-all:2.3.8"
}
test {
Properties props = new Properties()
def propFileName = "ecplugin.properties"
def propertyFile = new File( propFileName )
if( propertyFile.exists() ) {
props.load(new FileInputStream(propFileName))
}
systemProperties['COMMANDER_SERVER'] = "$commanderServer"
systemProperties['COMMANDER_USER'] = props.getProperty("COMMANDER_USER")
systemProperties['COMMANDER_PASSWORD'] = props.getProperty("COMMANDER_PASSWORD")
systemProperties['OPENSTACK_USER'] = props.getProperty("OPENSTACK_USER")
systemProperties['OPENSTACK_PASSWORD'] = props.getProperty("OPENSTACK_PASSWORD")
systemProperties['OPENSTACK_TENANTID'] = props.getProperty("OPENSTACK_TENANTID")
systemProperties['OPENSTACK_IDENTITY_URL'] = props.getProperty("OPENSTACK_IDENTITY_URL")
systemProperties['PLUGIN_VERSION'] = version
testLogging {
// Show that tests are run in the command-line output
events 'started', 'passed'
exceptionFormat = 'full'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.13'
}
// Include any dependent jars in the plugin jar file for
// evaluating the validation and dynamic option scripts
// on the ElectricFlow server.
jar {
from(configurations.includeInPluginJar, { into('libs') })
}
gwt {
modules 'ecplugins.openstack.ConfigurationManagement'
}