build.gradle 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. apply plugin: 'com.android.library'
  2. def siteUrl = 'https://github.com/kongzue/DialogX' //项目在github主页地址
  3. def gitUrl = 'https://github.com/kongzue/DialogX.git' //Git仓库的地址
  4. group = "com.kongzue.dialogx.style.kongzue"
  5. version = BUILD_VERSION
  6. android {
  7. compileSdkVersion 30
  8. defaultConfig {
  9. minSdkVersion 21
  10. targetSdkVersion 30
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. }
  19. //install {
  20. // repositories.mavenInstaller {
  21. // // This generates POM.xml with proper parameters
  22. // pom {
  23. // project {
  24. // packaging 'aar'
  25. // name 'dialogXKongzueStyle'
  26. // url siteUrl
  27. // licenses {
  28. // license {
  29. // name 'The Apache Software License, Version 2.0'
  30. // url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
  31. // }
  32. // }
  33. // developers {
  34. // developer {
  35. // id 'myzchh'//设置自己ID
  36. // name 'myzchh'//设置自己名字
  37. // email 'myzcxhh@live.cn'//设置自己邮箱
  38. // }
  39. // }
  40. // scm {
  41. // connection gitUrl
  42. // developerConnection gitUrl
  43. // url siteUrl
  44. // }
  45. // }
  46. // }
  47. // }
  48. //}
  49. task sourcesJar(type: Jar) {
  50. from android.sourceSets.main.java.srcDirs
  51. classifier = 'sources'
  52. }
  53. artifacts {
  54. archives sourcesJar
  55. }
  56. //Properties properties = new Properties()
  57. //properties.load(project.rootProject.file('local.properties').newDataInputStream())
  58. //bintray {
  59. // user = properties.getProperty("bintray.user")
  60. // key = properties.getProperty("bintray.apikey")
  61. // configurations = ['archives']
  62. // pkg {
  63. // repo = "maven"
  64. // name = "dialogXKongzueStyle" //项目在JCenter的名字
  65. // websiteUrl = siteUrl
  66. // vcsUrl = gitUrl
  67. // licenses = ["Apache-2.0"]
  68. // publish = true
  69. // }
  70. //}
  71. dependencies {
  72. implementation fileTree(dir: "libs", include: ["*.jar"])
  73. compileOnly project(path: ':DialogX')
  74. compileOnly project(path: ':DialogXInterface')
  75. }