Created
January 20, 2020 15:01
-
-
Save Yazan98/f7ba286119cd8f5586d137ff0c65061f to your computer and use it in GitHub Desktop.
Bintray Android Module Configuration
This file contains 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
def artifactID = "vortex-ui-ktx" | |
def rootDes = "Vortex Core is the Base Code Layer" | |
def repoName = "Vortex-UI" | |
install { | |
repositories.mavenInstaller { | |
pom.project { | |
packaging rootProject.ext.PackagingType | |
name rootProject.ext.LibraryName | |
description "${rootDes}" | |
url rootProject.ext.GithubUrl | |
artifactId "${artifactID}" | |
groupId rootProject.ext.LibraryGroup | |
version rootProject.ext.LibraryVersion | |
licenses { | |
license { | |
name rootProject.ext.licenseName | |
url rootProject.ext.licenseUrl | |
distribution rootProject.ext.distribution | |
} | |
} | |
scm { | |
connection rootProject.ext.GitUrl | |
url rootProject.ext.GithubUrl | |
} | |
developers { | |
developer { | |
id rootProject.ext.DeveloperID | |
name rootProject.ext.DeveloperName | |
email rootProject.ext.DeveloperEmail | |
} | |
} | |
} | |
} | |
} | |
bintray { | |
user = "${rootProject.ext.BintrayUsername}" | |
key = "${rootProject.ext.BintrayApiKey}" | |
configurations = ['archives'] | |
publications = ['Production'] | |
publish = true | |
pkg { | |
repo = rootProject.ext.LibraryName | |
name = "${repoName}" | |
desc = "${rootDes}" | |
dryRun = false | |
publish = true | |
override = true | |
userOrg = user | |
licenses = ["${rootProject.ext.licenseName}"] | |
vcsUrl = rootProject.ext.GitUrl | |
issueTrackerUrl = rootProject.ext.GithubIssuesUrl | |
publicDownloadNumbers = true | |
} | |
} | |
publishing { | |
publications { | |
Production(MavenPublication) { | |
artifact("$buildDir/outputs/aar/vortex-ui-release.aar") | |
groupId rootProject.ext.LibraryGroup | |
artifactId "${artifactID}" | |
version rootProject.ext.LibraryVersion | |
pom.withXml { | |
def dependenciesNode = asNode().appendNode('dependencies') | |
configurations.compile.allDependencies.each { | |
def dependencyNode = dependenciesNode.appendNode('dependency') | |
dependencyNode.appendNode('groupId', it.group) | |
dependencyNode.appendNode('artifactId', it.name) | |
dependencyNode.appendNode('version', it.version) | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment