You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
3.0 KiB

  1. /*
  2. * Copyright 2016 Marvin Ramin.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * <http://www.apache.org/licenses/LICENSE-2.0>
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. apply plugin: 'com.github.dcendents.android-maven'
  17. apply plugin: 'com.jfrog.bintray'
  18. def libName = 'RxFingerprint'
  19. def libDescription = 'Android library to use fingerprint authentication with RxJava'
  20. def mavenPackageType = 'aar'
  21. def mavenDeveloperId = 'mauin'
  22. def mavenDeveloperName = 'Marvin Ramin'
  23. def mavenDeveloperEmail = 'marvin.ramin@gmail.com'
  24. def libWebsite = "https://github.com/Mauin/RxFingerprint"
  25. def libGit = "https://github.com/Mauin/RxFingerprint.git"
  26. def versionTag = versions.name.toString()
  27. bintray {
  28. user = bintray_user
  29. key = bintray_key
  30. configurations = ['archives']
  31. pkg {
  32. repo = "maven"
  33. name = libName
  34. desc = libDescription
  35. websiteUrl = libWebsite
  36. issueTrackerUrl = "https://github.com/Mauin/RxFingerprint/issues"
  37. vcsUrl = libGit
  38. licenses = ['Apache-2.0']
  39. labels = ['aar', 'android', 'fingerprint', 'fingerprintmanager', 'rxjava', 'authentication']
  40. version {
  41. name = versionTag
  42. released = new Date()
  43. vcsTag = versionTag
  44. }
  45. }
  46. }
  47. install {
  48. repositories.mavenInstaller {
  49. pom.project {
  50. packaging mavenPackageType
  51. name libName
  52. url libWebsite
  53. licenses {
  54. license {
  55. name 'The Apache Software License, Version 2.0'
  56. url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
  57. }
  58. }
  59. developers {
  60. developer {
  61. id mavenDeveloperId
  62. name mavenDeveloperName
  63. email mavenDeveloperEmail
  64. }
  65. }
  66. scm {
  67. connection libGit
  68. developerConnection libGit
  69. url libWebsite
  70. }
  71. }
  72. }
  73. }
  74. task sourcesJar(type: Jar) {
  75. from android.sourceSets.main.java.srcDirs
  76. classifier = 'sources'
  77. }
  78. task javadoc(type: Javadoc) {
  79. source = android.sourceSets.main.java.srcDirs
  80. classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
  81. options.addStringOption('Xdoclint:none', '-quiet')
  82. }
  83. task javadocJar(type: Jar, dependsOn: javadoc) {
  84. classifier = 'javadoc'
  85. from javadoc.destinationDir
  86. }
  87. artifacts {
  88. archives javadocJar
  89. archives sourcesJar
  90. }
  91. task bintrayPublish(dependsOn: [javadocJar, sourcesJar, install, bintrayUpload]) {
  92. // everything is done in the depending tasks
  93. }