This repository has been archived by the owner on Mar 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (61 loc) · 1.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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:0.3"
classpath "com.github.townsfolk:gradle-release:1.2"
}
}
apply plugin: "java"
apply plugin: "groovy"
apply plugin: "idea"
apply plugin: "maven-publish"
repositories {
jcenter()
}
dependencies {
compile "org.apache.jclouds:jclouds-blobstore:1.7.2"
compile "org.mongodb:mongo-java-driver:2.12.1"
testCompile "org.codehaus.groovy:groovy-all:2.3.0"
testCompile "org.spockframework:spock-core:0.7-groovy-2.0"
}
sourceCompatibility = "1.7"
group = "com.commercehub.jclouds"
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = "javadoc"
from javadoc.destinationDir
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
}
}
}
apply plugin: "bintray"
apply plugin: "release"
bintray {
user = project.hasProperty("bintrayUserName") ? bintrayUserName : null
key = project.hasProperty("bintrayApiKey") ? bintrayApiKey : null
publications = ["mavenJava"]
pkg {
repo = "main"
userOrg = "commercehub-oss"
name = "jclouds-gridfs-blobstore"
desc = "A JClouds BlobStore provider backed by MongoDB's GridFS"
licenses = ['Apache-2.0']
labels = ["mongodb", "jclouds", "gridfs"]
}
}
bintrayUpload.dependsOn build, sourceJar, javadocJar
createReleaseTag.dependsOn bintrayUpload