aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorbootstraponline <code@bootstraponline.com>2015-02-12 11:28:49 -0500
committerbootstraponline <code@bootstraponline.com>2015-02-12 13:13:16 -0500
commitbcb5f695ea86b08833be8c9be41a1e29c4c8015b (patch)
tree0cc9ac6e46c63ea1761e3e2d4b5c32a8eb3ffd09 /build.gradle
parent7464d2c2dee592c15f67b7053989e1e2a330ab3b (diff)
downloaddroiddriver-bcb5f695ea86b08833be8c9be41a1e29c4c8015b.tar.gz
Add jcenter integration
Change-Id: I1cebf4117a5e9dcf6eecd4581d11e47b947637f0
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle64
1 files changed, 60 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle
index b5d6734..bbeb1cc 100644
--- a/build.gradle
+++ b/build.gradle
@@ -12,18 +12,30 @@ buildscript {
}
}
+// Requires Grade >= 2.1
+plugins {
+ id 'com.jfrog.bintray' version '1.1'
+}
+
apply plugin: 'com.android.library'
tasks.withType(JavaCompile) {
- options.compilerArgs << "-Xlint:deprecation"
+ options.compilerArgs << '-Xlint:deprecation'
}
-version = '1.0.0'
-group = 'io.appium'
+def ddArtifactId = 'droiddriver'
+def ddGroup = 'io.appium'
+def ddVersion = '1.0.0-SNAPSHOT'
+def ddWebsite = 'https://github.com/appium/droiddriver'
+def ddTracker = 'https://github.com/appium/droiddriver/issues'
+def ddGit = 'https://github.com/appium/droiddriver.git'
+def ddDescription = 'Android UI testing framework'
+version = ddVersion
+group = ddGroup
android {
compileSdkVersion 21
- buildToolsVersion "21.1.2"
+ buildToolsVersion '21.1.2'
defaultConfig {
minSdkVersion 12 // TODO: need to support SDK 9?
@@ -51,12 +63,30 @@ install {
repositories.mavenInstaller {
pom {
project {
+ packaging 'aar'
+ version = ddVersion
+ groupId = ddGroup
+ artifactId = ddArtifactId
+
+ description = ddDescription
+ url ddWebsite
+
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
+
+ scm {
+ connection ddGit
+ developerConnection ddGit
+ url ddWebsite
+ }
+
+ issueManagement {
+ url ddTracker
+ }
}
}
}
@@ -81,3 +111,29 @@ artifacts {
archives javadocJar
archives sourcesJar
}
+
+Properties properties = new Properties()
+properties.load(project.rootProject.file('local.properties').newDataInputStream())
+
+bintray {
+ publish = true
+ user = properties.getProperty('bintray.user')
+ key = properties.getProperty('bintray.key')
+
+ configurations = ['archives']
+ pkg {
+ repo = 'maven'
+ userOrg = 'appium'
+ name = "${ddGroup}:${ddArtifactId}"
+ websiteUrl = ddWebsite
+ issueTrackerUrl = ddTracker
+ vcsUrl = ddGit
+ desc = ddDescription
+ licenses = ['The Apache Software License, Version 2.0']
+ publicDownloadNumbers = true
+ version {
+ name = ddVersion
+ desc = ddDescription
+ }
+ }
+}