Last active
March 18, 2019 14:09
-
-
Save daemon369/39f43c9406312f3b565b9f8a42923b10 to your computer and use it in GitHub Desktop.
BintrayUpload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apply plugin: 'com.github.dcendents.android-maven' | |
| apply plugin: 'com.jfrog.bintray' | |
| group = publishedGroupId | |
| version = libraryVersion | |
| install { | |
| repositories.mavenInstaller { | |
| pom.project { | |
| packaging 'aar' | |
| groupId publishedGroupId | |
| artifactId artifact | |
| name libraryName | |
| description libraryDescription | |
| url siteUrl | |
| licenses { | |
| license { | |
| name licenseName | |
| url licenseUrl | |
| } | |
| } | |
| developers { | |
| developer { | |
| id developerId | |
| name developerName | |
| email developerEmail | |
| } | |
| } | |
| scm { | |
| connection gitUrl | |
| developerConnection gitUrl | |
| url siteUrl | |
| } | |
| } | |
| } | |
| } | |
| task sourcesJar(type: Jar) { | |
| classifier = 'sources' | |
| from android.sourceSets.main.java.srcDirs | |
| } | |
| task javadoc(type: Javadoc) { | |
| source = android.sourceSets.main.java.srcDirs | |
| classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | |
| excludes = ['**/*.kt'] // < ---- Exclude all kotlin files from javadoc file. | |
| } | |
| task javadocJar(type: Jar, dependsOn: javadoc) { | |
| classifier = 'javadoc' | |
| from javadoc.destinationDir | |
| } | |
| artifacts { | |
| archives javadocJar | |
| archives sourcesJar | |
| } | |
| Properties properties = new Properties() | |
| properties.load(project.rootProject.file('local.properties').newDataInputStream()) | |
| bintray { | |
| user = properties.getProperty("bintray.user") | |
| key = properties.getProperty("bintray.apikey") | |
| configurations = ['archives'] | |
| pkg { | |
| repo = bintrayRepo | |
| name = bintrayName | |
| desc = libraryDescription | |
| websiteUrl = siteUrl | |
| vcsUrl = gitUrl | |
| licenses = allLicenses | |
| dryRun = false | |
| publish = true | |
| override = false | |
| publicDownloadNumbers = true | |
| version { | |
| desc = libraryDescription | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment