|
@@ -0,0 +1,96 @@
|
|
|
|
|
+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
|
|
|
|
|
+ }
|
|
|
|
|
+}
|