| apply plugin: android.support.SupportLibraryPlugin |
| archivesBaseName = 'cardview-v7' |
| |
| dependencies { |
| compile project(':support-annotations') |
| } |
| |
| android { |
| compileSdkVersion project.ext.currentSdk |
| |
| defaultConfig { |
| minSdkVersion 9 |
| } |
| |
| sourceSets { |
| main.java.srcDirs = [ |
| 'base', |
| 'gingerbread', |
| 'jellybean-mr1', |
| 'api21', |
| 'src' |
| ] |
| main.res.srcDir 'res' |
| } |
| } |
| |
| 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 sourcesJarTask = project.tasks.create(name: "sourceJar${suffix}", type: Jar) { |
| classifier = 'sources' |
| from android.sourceSets.main.java.srcDirs |
| } |
| |
| artifacts.add('archives', sourcesJarTask); |
| } |
| |
| uploadArchives { |
| repositories { |
| mavenDeployer { |
| repository(url: uri(rootProject.ext.supportRepoOut)) { |
| } |
| |
| pom.project { |
| name 'Android Support CardView v7' |
| description "Android Support CardView v7" |
| 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' |
| } |
| } |
| } |
| } |
| } |
| } |