|
@@ -1,6 +1,5 @@
|
|
|
apply plugin: 'com.android.library'
|
|
|
-apply plugin: 'com.github.dcendents.android-maven'
|
|
|
-apply plugin: 'com.jfrog.bintray'
|
|
|
+apply plugin: 'android-maven'
|
|
|
|
|
|
def siteUrl = 'https://github.com/kongzue/DialogX' //项目在github主页地址
|
|
|
def gitUrl = 'https://github.com/kongzue/DialogX.git' //Git仓库的地址
|
|
@@ -26,36 +25,36 @@ android {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-install {
|
|
|
- repositories.mavenInstaller {
|
|
|
- // This generates POM.xml with proper parameters
|
|
|
- pom {
|
|
|
- project {
|
|
|
- packaging 'aar'
|
|
|
- name 'dialogXKongzueStyle'
|
|
|
- url siteUrl
|
|
|
- licenses {
|
|
|
- license {
|
|
|
- name 'The Apache Software License, Version 2.0'
|
|
|
- url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|
|
- }
|
|
|
- }
|
|
|
- developers {
|
|
|
- developer {
|
|
|
- id 'myzchh'//设置自己ID
|
|
|
- name 'myzchh'//设置自己名字
|
|
|
- email 'myzcxhh@live.cn'//设置自己邮箱
|
|
|
- }
|
|
|
- }
|
|
|
- scm {
|
|
|
- connection gitUrl
|
|
|
- developerConnection gitUrl
|
|
|
- url siteUrl
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
+//install {
|
|
|
+// repositories.mavenInstaller {
|
|
|
+// // This generates POM.xml with proper parameters
|
|
|
+// pom {
|
|
|
+// project {
|
|
|
+// packaging 'aar'
|
|
|
+// name 'dialogXKongzueStyle'
|
|
|
+// url siteUrl
|
|
|
+// licenses {
|
|
|
+// license {
|
|
|
+// name 'The Apache Software License, Version 2.0'
|
|
|
+// url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|
|
+// }
|
|
|
+// }
|
|
|
+// developers {
|
|
|
+// developer {
|
|
|
+// id 'myzchh'//设置自己ID
|
|
|
+// name 'myzchh'//设置自己名字
|
|
|
+// email 'myzcxhh@live.cn'//设置自己邮箱
|
|
|
+// }
|
|
|
+// }
|
|
|
+// scm {
|
|
|
+// connection gitUrl
|
|
|
+// developerConnection gitUrl
|
|
|
+// url siteUrl
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+//}
|
|
|
task sourcesJar(type: Jar) {
|
|
|
from android.sourceSets.main.java.srcDirs
|
|
|
classifier = 'sources'
|
|
@@ -65,21 +64,21 @@ artifacts {
|
|
|
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 = "dialogXKongzueStyle" //项目在JCenter的名字
|
|
|
- websiteUrl = siteUrl
|
|
|
- vcsUrl = gitUrl
|
|
|
- licenses = ["Apache-2.0"]
|
|
|
- publish = true
|
|
|
- }
|
|
|
-}
|
|
|
+//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 = "dialogXKongzueStyle" //项目在JCenter的名字
|
|
|
+// websiteUrl = siteUrl
|
|
|
+// vcsUrl = gitUrl
|
|
|
+// licenses = ["Apache-2.0"]
|
|
|
+// publish = true
|
|
|
+// }
|
|
|
+//}
|
|
|
dependencies {
|
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
|
implementation project(path: ':DialogX')
|