android-crop/lib/build.gradle

79 lines
1.9 KiB
Groovy

apply plugin: 'android-library'
apply plugin: 'maven'
archivesBaseName = 'android-crop'
android {
compileSdkVersion 19
buildToolsVersion '19.0.3'
defaultConfig {
minSdkVersion 9
targetSdkVersion 19
testPackageName 'com.soundcloud.android.crop.test'
testInstrumentationRunner 'android.test.InstrumentationTestRunner'
}
}
dependencies {
androidTestCompile 'com.squareup:fest-android:1.0.7'
androidTestCompile 'com.android.support:support-v4:19.0.+'
androidTestCompile 'org.mockito:mockito-core:1.9.5'
androidTestCompile 'com.google.dexmaker:dexmaker:1.0'
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.0'
}
task apklib(type: Zip) {
destinationDir = file('build/libs')
appendix = extension = 'apklib'
from 'src/main/AndroidManifest.xml'
into('res') {
from 'src/main/res'
}
into('src') {
from 'src/main/java'
}
}
artifacts {
archives apklib
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: 'http://maven.int.s-cloud.net/content/repositories/releases')
modifyPom(addFilter('aar') { artifact, file ->
artifact.name == archivesBaseName
})
modifyPom(addFilter('apklib') { artifact, file ->
artifact.name == archivesBaseName + '-apklib'
})
}
}
}
def modifyPom(pom) {
pom.project {
name 'android-crop'
description 'A simple Activity for cropping images'
url 'https://github.com/jdamcd/android-crop'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
organization {
name 'SoundCloud'
url 'http://developers.soundcloud.com'
}
}
}