diff options
author | Xavier Ducrohet <xav@android.com> | 2012-09-26 18:48:37 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2012-10-02 17:05:45 -0700 |
commit | d19ce5efa561089937102f19a373ac5324311a03 (patch) | |
tree | 37d4dbcc7b877a828fb91352d1ee2aed33712b72 /ddms | |
parent | 52bd84fffbdff2e31217f3466ce07cf2548b286b (diff) | |
download | sdk-d19ce5efa561089937102f19a373ac5324311a03.zip sdk-d19ce5efa561089937102f19a373ac5324311a03.tar.gz sdk-d19ce5efa561089937102f19a373ac5324311a03.tar.bz2 |
Update the gradle build files.
add javadoc and source artifacts as well as POM information
to upload to Maven Central.
Change-Id: I51701f5a5db5b2ae41ecede115e2b36adf1fa05e
Diffstat (limited to 'ddms')
-rw-r--r-- | ddms/.gitignore | 1 | ||||
-rw-r--r-- | ddms/libs/ddmlib/build.gradle | 77 |
2 files changed, 78 insertions, 0 deletions
diff --git a/ddms/.gitignore b/ddms/.gitignore index 6d833a0..1ef345b 100644 --- a/ddms/.gitignore +++ b/ddms/.gitignore @@ -1,4 +1,5 @@ app/bin libs/ddmlib/bin +libs/ddmlib/build libs/ddmuilib/bin diff --git a/ddms/libs/ddmlib/build.gradle b/ddms/libs/ddmlib/build.gradle new file mode 100644 index 0000000..d765588 --- /dev/null +++ b/ddms/libs/ddmlib/build.gradle @@ -0,0 +1,77 @@ +dependencies { + testCompile 'org.easymock:easymock:3.1' + testCompile 'junit:junit:3.8.1' +} + +def getVersion() { + if (project.has("release")) { + return project.ext.baseVersion + } + + return project.ext.baseVersion + '-SNAPSHOT' +} + +version = getVersion() +archivesBaseName = 'ddmlib' + +sourceSets { + main { + java { + srcDir 'src' + } + resources { + srcDir 'src' + } + } + test { + java { + srcDir 'tests/src' + } + resources { + srcDir 'tests/src' + } + } +} + +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 ddmlib' + description 'Library providing APIs to talk to Android devices' + 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' + } + } + } + } + } +} |