|
| 1 | +import groovyx.net.http.ContentType |
| 2 | +import org._10ne.gradle.rest.RestTask |
| 3 | + |
1 | 4 | ext {
|
2 | 5 | minSdkVersion = 15
|
3 | 6 | compileSdkVersion = 21
|
|
6 | 9 | isSnapshot = !project.hasProperty('release')
|
7 | 10 | }
|
8 | 11 |
|
| 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 | + |
9 | 28 | allprojects {
|
10 | 29 | version = "1.0.0${isSnapshot == false ? '' : '-SNAPSHOT'}"
|
11 | 30 | 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 |
| - } |
29 | 31 |
|
30 | 32 | repositories {
|
31 | 33 | jcenter()
|
32 | 34 | }
|
33 | 35 | }
|
| 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