build.gradle 2.5 KB

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