build.gradle 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. apply plugin: 'com.android.library'
  2. //apply plugin: 'me.tatarka.retrolambda'
  3. apply plugin: 'com.github.dcendents.android-maven'
  4. apply plugin: "com.jfrog.bintray"
  5. version = "1.1.3"
  6. android {
  7. compileSdkVersion 28
  8. buildToolsVersion '28.0.3'
  9. // compileSdkVersion 24
  10. // buildToolsVersion '24'
  11. defaultConfig {
  12. minSdkVersion 14
  13. targetSdkVersion 26
  14. // targetSdkVersion 24
  15. versionCode 3
  16. versionName version
  17. vectorDrawables.useSupportLibrary = true
  18. }/*
  19. compileOptions {
  20. sourceCompatibility JavaVersion.VERSION_1_8
  21. targetCompatibility JavaVersion.VERSION_1_8
  22. }*/
  23. lintOptions {
  24. abortOnError false
  25. checkReleaseBuilds false
  26. }
  27. resourcePrefix "gallery_"
  28. compileOptions {
  29. sourceCompatibility JavaVersion.VERSION_1_8
  30. targetCompatibility JavaVersion.VERSION_1_8
  31. }
  32. }
  33. /*Configuration 'provided' is obsolete and has been replaced with 'compileOnly'.*/
  34. dependencies {
  35. implementation fileTree(include: ['*.jar'], dir: 'libs')
  36. testImplementation 'junit:junit:4.12'
  37. api 'io.reactivex.rxjava2:rxandroid:2.0.1'
  38. api 'io.reactivex.rxjava2:rxjava:2.1.0'
  39. api 'com.yalantis:ucrop:2.2.0'
  40. api 'com.android.support:recyclerview-v7:28.0.0'
  41. api 'com.android.support:appcompat-v7:28.0.0'
  42. api 'com.android.support:exifinterface:28.0.0'
  43. /* implementation 'com.android.support:recyclerview-v7:24.2.0'
  44. implementation 'com.android.support:appcompat-v7:24.2.0'
  45. implementation "com.android.support:exifinterface:25.1.0"*/
  46. api 'com.squareup.picasso:picasso:2.5.2'
  47. api 'com.facebook.fresco:fresco:1.3.0'
  48. api 'com.facebook.fresco:animated-gif:1.3.0'
  49. implementation 'com.github.bumptech.glide:glide:4.8.0'
  50. api 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
  51. }
  52. //===================================upload jcenter=================================================
  53. def siteUrl = 'https://github.com/FinalTeam/RxGalleryFinal'
  54. def gitUrl = 'https://github.com/FinalTeam/RxGalleryFinal.git'
  55. group = "cn.finalteam.rxgalleryfinal"
  56. install {
  57. repositories.mavenInstaller {
  58. pom {
  59. project {
  60. packaging 'aar'
  61. // Add your description here
  62. name 'RxGalleryFinal'
  63. description = 'dujinyang desc'
  64. url siteUrl
  65. // Set your license
  66. licenses {
  67. license {
  68. name 'The Apache Software License, Version 2.0'
  69. url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
  70. }
  71. }
  72. developers {
  73. developer {
  74. id 'dujinyang'
  75. name 'dujinyang'
  76. email '309933706@qq.com'
  77. }
  78. }
  79. scm {
  80. connection gitUrl
  81. developerConnection gitUrl
  82. url siteUrl
  83. }
  84. }
  85. }
  86. }
  87. }
  88. task sourcesJar(type: Jar) {
  89. from android.sourceSets.main.java.srcDirs
  90. classifier = 'sources'
  91. }
  92. artifacts {
  93. archives sourcesJar
  94. }
  95. Properties properties = new Properties()
  96. properties.load(project.rootProject.file('local.properties').newDataInputStream())
  97. bintray {
  98. user = properties.getProperty("bintray.user")
  99. key = properties.getProperty("bintray.apikey")
  100. configurations = ['archives']
  101. pkg {
  102. repo = "maven"
  103. name = "RxGalleryFinal"
  104. websiteUrl = siteUrl
  105. vcsUrl = gitUrl
  106. licenses = ["Apache-2.0"]
  107. publish = true
  108. version {
  109. gpg {
  110. passphrase = properties.getProperty("bintray.gpg.password")
  111. }
  112. }
  113. }
  114. }