99 lines
3.1 KiB
Groovy
99 lines
3.1 KiB
Groovy
apply plugin: 'com.android.library'
|
|
//apply plugin: 'com.github.dcendents.android-maven'
|
|
//apply plugin: 'com.jfrog.bintray'
|
|
|
|
version = "2.0.8"
|
|
|
|
android {
|
|
compileSdkVersion 21
|
|
buildToolsVersion "20.0.0"
|
|
|
|
defaultConfig {
|
|
minSdkVersion 9
|
|
targetSdkVersion 21
|
|
versionCode 1
|
|
versionName "1.0"
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
|
}
|
|
|
|
def siteUrl = 'https://github.com/saiwu-bigkoo/Android-PickerView' // #CONFIG# // project homepage
|
|
def gitUrl = 'https://github.com/saiwu-bigkoo/Android-PickerView.git' // #CONFIG# // project git
|
|
group = "com.bigkoo"
|
|
//
|
|
//install {
|
|
// repositories.mavenInstaller {
|
|
// // This generates POM.xml with proper parameters
|
|
// pom {
|
|
// project {
|
|
// packaging 'aar'
|
|
// name 'PickerView For Android' // #CONFIG# // project title
|
|
// url siteUrl
|
|
// // Set your license
|
|
// licenses {
|
|
// license {
|
|
// name 'The Apache Software License, Version 2.0'
|
|
// url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|
// }
|
|
// }
|
|
// developers {
|
|
// developer {
|
|
// id 'sai' // #CONFIG# // your user id (you can write your nickname)
|
|
// name 'sai.wu' // #CONFIG# // your user name
|
|
// email 'sai.wu@bigkoo.com' // #CONFIG# // your email
|
|
// }
|
|
// }
|
|
// scm {
|
|
// connection gitUrl
|
|
// developerConnection gitUrl
|
|
// url siteUrl
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
//}
|
|
|
|
task sourcesJar(type: Jar) {
|
|
from android.sourceSets.main.java.srcDirs
|
|
classifier = 'sources'
|
|
}
|
|
|
|
task javadoc(type: Javadoc) {
|
|
source = android.sourceSets.main.java.srcDirs
|
|
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
|
|
}
|
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
classifier = 'javadoc'
|
|
from javadoc.destinationDir
|
|
}
|
|
|
|
artifacts {
|
|
archives javadocJar
|
|
archives sourcesJar
|
|
}
|
|
|
|
Properties properties = new Properties()
|
|
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
|
//bintray {
|
|
// user = properties.getProperty("bintray.user")
|
|
// key = properties.getProperty("bintray.apikey")
|
|
// configurations = ['archives']
|
|
// pkg {
|
|
// repo = "maven"
|
|
// name = "PickerView" // #CONFIG# project name in jcenter
|
|
// websiteUrl = siteUrl
|
|
// vcsUrl = gitUrl
|
|
// licenses = ["Apache-2.0"]
|
|
// publish = true
|
|
// }
|
|
//} |