From bcb5f695ea86b08833be8c9be41a1e29c4c8015b Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Thu, 12 Feb 2015 11:28:49 -0500 Subject: Add jcenter integration Change-Id: I1cebf4117a5e9dcf6eecd4581d11e47b947637f0 --- build.gradle | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 60 insertions(+), 4 deletions(-) (limited to 'build.gradle') 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 + } + } +} -- cgit v1.2.3