diff options
| author | Steve Kondik <steve@cyngn.com> | 2016-03-10 19:23:13 -0800 |
|---|---|---|
| committer | Steve Kondik <steve@cyngn.com> | 2016-03-10 19:23:13 -0800 |
| commit | 98e06d73262bc654d546ef2ded2cd6c4db5b92bf (patch) | |
| tree | d923c571c21849bf53185b26e3570fdb25fabff9 /percent/build.gradle | |
| parent | 6f0a2cb4415e2e170528c038a8f1cc2f68f60c3c (diff) | |
| parent | 4097efdd93078034122f17442d5b4df675d1028a (diff) | |
| download | android_frameworks_support-98e06d73262bc654d546ef2ded2cd6c4db5b92bf.tar.gz android_frameworks_support-98e06d73262bc654d546ef2ded2cd6c4db5b92bf.tar.bz2 android_frameworks_support-98e06d73262bc654d546ef2ded2cd6c4db5b92bf.zip | |
Merge tag 'android-6.0.1_r22' of https://android.googlesource.com/platform/frameworks/support into cm-13.0staging/cm-13.0+r22
Android 6.0.1 release 22
Change-Id: I032842dcd2a5a216a56a47a7cb109f0cee8ac251
Diffstat (limited to 'percent/build.gradle')
| -rw-r--r-- | percent/build.gradle | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/percent/build.gradle b/percent/build.gradle index 28907b807e..6fbc478f38 100644 --- a/percent/build.gradle +++ b/percent/build.gradle @@ -28,3 +28,70 @@ android { targetCompatibility JavaVersion.VERSION_1_7 } } + +android.libraryVariants.all { variant -> + def name = variant.buildType.name + + if (name.equals(com.android.builder.core.BuilderConstants.DEBUG)) { + return; // Skip debug builds. + } + def suffix = name.capitalize() + + def jarTask = project.tasks.create(name: "jar${suffix}", type: Jar){ + dependsOn variant.javaCompile + from variant.javaCompile.destinationDir + from 'LICENSE.txt' + } + def javadocTask = project.tasks.create(name: "javadoc${suffix}", type: Javadoc) { + source android.sourceSets.main.java + classpath = files(variant.javaCompile.classpath.files) + files( + "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar") + } + + def javadocJarTask = project.tasks.create(name: "javadocJar${suffix}", type: Jar) { + classifier = 'javadoc' + from 'build/docs/javadoc' + } + + def sourcesJarTask = project.tasks.create(name: "sourceJar${suffix}", type: Jar) { + classifier = 'sources' + from android.sourceSets.main.java.srcDirs + } + + artifacts.add('archives', javadocJarTask); + artifacts.add('archives', sourcesJarTask); +} + +uploadArchives { + repositories { + mavenDeployer { + repository(url: uri(rootProject.ext.supportRepoOut)) { + } + + pom.project { + name 'Android Percent Support Library' + description "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 7 or later." + url 'http://developer.android.com/tools/extras/support-library.html' + inceptionYear '2011' + + licenses { + license { + name 'The Apache Software License, Version 2.0' + url 'http://www.apache.org/licenses/LICENSE-2.0.txt' + distribution 'repo' + } + } + + scm { + url "http://source.android.com" + connection "scm:git:https://android.googlesource.com/platform/frameworks/support" + } + developers { + developer { + name 'The Android Open Source Project' + } + } + } + } + } +} |
