diff options
Diffstat (limited to 'sdkmanager/libs')
-rw-r--r-- | sdkmanager/libs/sdklib/build.gradle | 59 |
1 files changed, 54 insertions, 5 deletions
diff --git a/sdkmanager/libs/sdklib/build.gradle b/sdkmanager/libs/sdklib/build.gradle index 3e200ae..ce03920 100644 --- a/sdkmanager/libs/sdklib/build.gradle +++ b/sdkmanager/libs/sdklib/build.gradle @@ -1,19 +1,25 @@ -apply plugin: 'java' - dependencies { compile project(':layoutlib_api') - compile project(':device_validator:dvlib') + compile project(':dvlib') compile 'org.apache.commons:commons-compress:1.0' compile 'org.apache.httpcomponents:httpclient:4.1.1' compile 'org.apache.httpcomponents:httpmime:4.1' compile 'org.apache.commons:commons-compress:1.0' - testCompile project(':device_validator:dvlib').sourceSets.test.output + testCompile project(':dvlib').sourceSets.test.output testCompile 'junit:junit:3.8.1' } -group = 'com.android.tools' +def getVersion() { + if (project.has("release")) { + return project.ext.baseVersion + } + + return project.ext.baseVersion + '-SNAPSHOT' +} + +version = getVersion() archivesBaseName = 'sdklib' sourceSets { @@ -34,3 +40,46 @@ sourceSets { } } } + +uploadArchives { + repositories { + mavenDeployer { + beforeDeployment { MavenDeployment deployment -> + if (!project.has("release")) { + throw new StopExecutionException("uploadArchives must be called with the release.gradle init script") + } + + signing.signPom(deployment) + } + + repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { + authentication(userName: sonatypeUsername, password: sonatypePassword) + } + + pom.project { + name 'Android Tools sdklib' + description 'A library to parse and download the Android SDK.' + url 'http://tools.android.com' + inceptionYear '2007' + + licenses { + license { + name 'The Apache Software License, Version 2.0' + url 'http://www.apache.org/licenses/LICENSE-2.0.txt' + distribution 'repo' + } + } + + scm { + url "https://android.googlesource.com/platform/sdk" + connection "git://android.googlesource.com/platform/sdk.git" + } + developers { + developer { + name 'The Android Open Source Project' + } + } + } + } + } +} |