| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- apply plugin: 'com.android.library'
- android {
- compileSdkVersion 22
- buildToolsVersion "22.0.1"
- resourcePrefix "swipemenulistview"
- defaultConfig {
- minSdkVersion 8
- targetSdkVersion 22
- versionCode 1
- versionName "1.0"
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- }
- dependencies {
- compile fileTree(dir: 'libs', include: ['*.jar'])
- compile 'com.android.support:support-v4:22.1.1'
- }
- apply plugin: 'com.github.dcendents.android-maven'
- apply plugin: 'com.jfrog.bintray'
- version = "1.3.0"
- def siteUrl = 'https://github.com/baoyongzhang/SwipeMenuListView'
- def gitUrl = 'https://github.com/baoyongzhang/SwipeMenuListView.git'
- group = "com.baoyz.swipemenulistview"
- install {
- repositories.mavenInstaller {
- pom {
- project {
- packaging 'aar'
- // Add your description here
- name 'SwipeMenuListView' //项目描述
- url siteUrl
- // Set your license
- licenses {
- license {
- name 'The MIT License (MIT)'
- url 'http://baoyz.com/licenses/LICENSE.txt'
- }
- }
- developers {
- developer {
- id 'baoyongzhang' //填写的一些基本信息
- name 'baoyongzhang'
- email 'baoyz94@gmail.com'
- }
- }
- 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 = "SwipeMenuListView" //发布到JCenter上的项目名字
- websiteUrl = siteUrl
- vcsUrl = gitUrl
- licenses = ["MIT"]
- publish = true
- }
- }
|