This repository has been archived by the owner on Oct 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
139 lines (114 loc) · 3.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
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
// ============================================================================
// (C) Copyright Schalk W. Cronje 2014
//
// This software is licensed under the Apache License 2.0
// See http://www.apache.org/licenses/LICENSE-2.0 for license details
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and limitations under the License.
//
// ============================================================================
apply plugin : 'eclipse'
apply plugin : 'idea'
apply plugin : 'jenkins'
apply plugin : 'project-report'
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'org.ysb33r.gradle:bintray:1.0'
classpath 'net.saliman:gradle-cobertura-plugin:2.2.2'
classpath 'com.terrafolio:gradle-jenkins-plugin:0.3.1'
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:2.2.3'
}
}
subprojects {
version = '0.1-SNAPSHOT'
ext {
bintrayRepo = 'grysb33r'
bintrayUser = 'ysb33r'
}
}
configure(subprojects.findAll {it.name != 'jlan'}) {
apply plugin: 'bintray-publish'
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'artifactory'
apply plugin: 'cobertura'
sourceCompatibility = 1.7
// Currently CodeNarc fails when used with JDK8.
// if (!org.gradle.internal.SystemProperties.javaVersion.startsWith('1.8.') && !it.name=='smb-provider') {
// apply plugin: 'codenarc'
//
// codenarcTest {
// onlyIf { false }
// }
// }
repositories {
jcenter()
maven { url 'http://repository.codehaus.org' }
maven { url 'https://oss.jfrog.org/artifactory/repo' }
maven { url 'https://oss.jfrog.org/artifactory/libs-snapshot' }
maven { url 'https://repository.apache.org/content/repositories/snapshots' }
mavenLocal()
}
dependencies {
compile 'org.apache.jclouds:jclouds-all:1.7.1'
// compile 'org.apache.jclouds:jclouds-all:1.8.0-SNAPSHOT'
compile 'org.slf4j:slf4j-api:1.7.+'
compile 'org.apache.jclouds.driver:jclouds-jsch:1.7.1'
compile 'org.apache.jclouds.driver:jclouds-slf4j:1.7.1'
testCompile 'org.spockframework:spock-core:0.7-groovy-2.0'
testRuntime 'org.slf4j:slf4j-simple:1.7.+'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
description "An archive of the JavaDocs for Maven Central"
classifier "javadoc"
from javadoc
}
cobertura {
format = 'xml'
includes = ['main/**/*.java', 'main/**/*.groovy']
}
artifacts {
archives sourcesJar, javadocJar
}
artifactory {
publish {
contextUrl = 'http://oss.jfrog.org'
repository {
repoKey = 'oss-snapshot-local'
username = project.properties.bintrayUserName
password = project.properties.bintrayApiKey
}
}
}
artifactoryPublish {
onlyIf { version.endsWith("SNAPSHOT") }
}
}
/*
jenkins {
servers {
"DEV@Cloud" {
url cloudbeesJenkinsUrl
secure true
username cloudbeesUserName
password cloudbeesPassword
}
}
defaultServer servers."DEV@Cloud"
jobs {
}
}
*/
task wrapper(type: Wrapper) {
gradleVersion = '1.11'
}