forked from ragsns/coprhd-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.gradle
29 lines (26 loc) · 941 Bytes
/
publish.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
/*
* Publishes RPM artifacts (built externally) to a Maven repository.
* Intended to enable the developer to publish a private build of storageos.rpm to
* their local Maven repository.
*
* usage: make rpm & ./gradlew -b publish.gradle publishToMavenLocal
*/
// Ensure proper version of gradle is being used
ext.GRADLE_VERSION = "1.11"
// Repository configuration
apply from: 'repositories.gradle'
// Build environment/runtime configuration
apply from: 'environment.gradle'
// Maven publishing configuration
apply plugin: 'maven-publish'
// http://www.gradle.org/docs/current/userguide/publishing_maven.html
publishing {
publications {
storageos(MavenPublication) {
groupId 'com.emc.asd.vipr'
artifactId 'storageos'
version storageosVersion
artifact fileTree(dir:"${buildDir}/RPMS/x86_64", include:"storageos-2.2.0.0.*.rpm").getSingleFile()
}
}
}