build.gradle 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'com.github.dcendents.android-maven'
  3. apply plugin: "com.jfrog.bintray"
  4. version = "1.2.1"
  5. android {
  6. compileSdkVersion rootProject.ext.android.compileSdkVersion
  7. buildToolsVersion rootProject.ext.android.buildToolsVersion
  8. defaultConfig {
  9. minSdkVersion rootProject.ext.android.minSdkVersion
  10. targetSdkVersion rootProject.ext.android.targetSdkVersion
  11. versionCode rootProject.ext.android.versionCode
  12. versionName rootProject.ext.android.versionName
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. }
  21. dependencies {
  22. api fileTree(dir: 'libs', include: ['*.jar'])
  23. }
  24. //def siteUrl = 'https://github.com/Cloudist/ACProgressLite'
  25. //def gitUrl = 'https://github.com/Cloudist/ACProgressLite.git'
  26. //group = "cc.cloudist.acplibrary"
  27. //install {
  28. // repositories.mavenInstaller {
  29. // // This generates POM.xml with proper parameters
  30. // pom {
  31. // project {
  32. // packaging 'aar'
  33. // // Add your description here
  34. // name 'Android ACProgressLite Widget Library'
  35. // url siteUrl
  36. // // Set your license
  37. // licenses { // 许可类型,后面也有
  38. // license {
  39. // name 'The MIT License'
  40. // url 'http://mit-license.org'
  41. // }
  42. // }
  43. // developers {
  44. // developer {
  45. // id 'cloudist'
  46. // name 'cloudist'
  47. // email 'd@cloudist.cc'
  48. // }
  49. // }
  50. // scm {
  51. // connection gitUrl
  52. // developerConnection gitUrl
  53. // url siteUrl
  54. // }
  55. // }
  56. // }
  57. // }
  58. //}
  59. //
  60. //task sourcesJar(type: Jar) {
  61. // from android.sourceSets.main.java.srcDirs
  62. // classifier = 'sources'
  63. //}
  64. //
  65. //task javadoc(type: Javadoc) {
  66. // source = android.sourceSets.main.java.srcDirs
  67. // classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
  68. //}
  69. //
  70. //task javadocJar(type: Jar, dependsOn: javadoc) {
  71. // classifier = 'javadoc'
  72. // from javadoc.destinationDir
  73. //}
  74. //
  75. //artifacts {
  76. // archives javadocJar
  77. // archives sourcesJar
  78. //}
  79. //
  80. //Properties properties = new Properties()
  81. //properties.load(project.rootProject.file('local.properties').newDataInputStream())
  82. //
  83. //bintray {
  84. // user = properties.getProperty("bintray.user")
  85. // key = properties.getProperty("bintray.apikey")
  86. // configurations = ['archives']
  87. // pkg {
  88. // repo = "maven"
  89. // name = "ACProgressLite"
  90. // websiteUrl = siteUrl
  91. // vcsUrl = gitUrl
  92. // licenses = ["MIT"]
  93. // publish = true
  94. // }
  95. //}