Skip to content

Commit cf24ecc

Browse files
committedJan 11, 2015
added bintraySign task
1 parent faf9b26 commit cf24ecc

File tree

1 file changed

+31
-17
lines changed

1 file changed

+31
-17
lines changed
 

‎build.gradle

+31-17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import groovyx.net.http.ContentType
2+
import org._10ne.gradle.rest.RestTask
3+
14
ext {
25
minSdkVersion = 15
36
compileSdkVersion = 21
@@ -6,28 +9,39 @@ ext {
69
isSnapshot = !project.hasProperty('release')
710
}
811

12+
buildscript {
13+
repositories {
14+
jcenter()
15+
}
16+
17+
dependencies {
18+
classpath 'com.android.tools.build:gradle:1.0.0'
19+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.6'
20+
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.0.1'
21+
classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:1.12.3'
22+
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
23+
classpath 'me.champeau.gradle:gradle-groovy-android-plugin:0.3.4'
24+
classpath 'org._10ne.gradle:rest-gradle-plugin:0.3.1'
25+
}
26+
}
27+
928
allprojects {
1029
version = "1.0.0${isSnapshot == false ? '' : '-SNAPSHOT'}"
1130
group = "com.andrewreitz"
12-
}
13-
14-
subprojects {
15-
buildscript {
16-
repositories {
17-
jcenter()
18-
}
19-
20-
dependencies {
21-
classpath 'com.android.tools.build:gradle:1.0.0'
22-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.6'
23-
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.0.1'
24-
classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:1.12.3'
25-
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
26-
classpath 'me.champeau.gradle:gradle-groovy-android-plugin:0.3.4'
27-
}
28-
}
2931

3032
repositories {
3133
jcenter()
3234
}
3335
}
36+
37+
apply plugin: "org.10ne.rest"
38+
39+
task bintraySign(type: RestTask) {
40+
description = "Sign the release build on bintray"
41+
httpMethod = "post"
42+
uri = "https://api.bintray.com/gpg/pieces/maven/spock-android/versions/${version}"
43+
username = bintrayUsername
44+
password = bintrayKey
45+
requestBody = [passphrase: signingPassword]
46+
contentType = ContentType.JSON
47+
}

0 commit comments

Comments
 (0)