SHARE
TWEET

Untitled

a guest Feb 17th, 2019 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. apply plugin: 'com.github.dcendents.android-maven'
  2. apply plugin: 'com.jfrog.bintray'
  3.  
  4. group = publishedGroupId
  5. version = libraryVersion
  6.  
  7. install {
  8.     repositories.mavenInstaller {
  9.         pom.project {
  10.             packaging 'aar'
  11.             groupId publishedGroupId
  12.             artifactId artifact
  13.  
  14.             name libraryName
  15.             description libraryDescription
  16.             url siteUrl
  17.  
  18.             licenses {
  19.                 license {
  20.                     name licenseName
  21.                     url licenseUrl
  22.                 }
  23.             }
  24.             developers {
  25.                 developer {
  26.                     id developerId
  27.                     name developerName
  28.                     email developerEmail
  29.                 }
  30.             }
  31.             scm {
  32.                 connection gitUrl
  33.                 developerConnection gitUrl
  34.                 url siteUrl
  35.             }
  36.         }
  37.     }
  38. }
  39.  
  40. task sourcesJar(type: Jar) {
  41.     classifier = 'sources'
  42.     from android.sourceSets.main.java.srcDirs
  43. }
  44.  
  45. task javadoc(type: Javadoc) {
  46.     source = android.sourceSets.main.java.srcDirs
  47.     classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
  48.     excludes = ['**/*.kt'] // < ---- Exclude all kotlin files from javadoc file.
  49. }
  50.  
  51. task javadocJar(type: Jar, dependsOn: javadoc) {
  52.     classifier = 'javadoc'
  53.     from javadoc.destinationDir
  54. }
  55.  
  56. artifacts {
  57.     archives javadocJar
  58.     archives sourcesJar
  59. }
  60.  
  61. Properties properties = new Properties()
  62. properties.load(project.rootProject.file('local.properties').newDataInputStream())
  63.  
  64. bintray {
  65.     user = properties.getProperty("bintray.user")
  66.     key = properties.getProperty("bintray.apikey")
  67.  
  68.     configurations = ['archives']
  69.     pkg {
  70.         repo = bintrayRepo
  71.         name = bintrayName
  72.         desc = libraryDescription
  73.         websiteUrl = siteUrl
  74.         vcsUrl = gitUrl
  75.         licenses = allLicenses
  76.         dryRun = false
  77.         publish = true
  78.         override = false
  79.         publicDownloadNumbers = true
  80.         version {
  81.             desc = libraryDescription
  82.         }
  83.     }
  84. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top