This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android] initial additions for bintray plugin setup
- Loading branch information
Showing
8 changed files
with
92 additions
and
5 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
apply plugin: 'com.jfrog.bintray' | ||
|
||
bintray { | ||
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER') | ||
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_KEY') | ||
publications = ['MapboxMapsSdkPublication'] | ||
dryRun = false // Whether to run this as dry-run, without deploying | ||
publish = false // Whether version should be auto published after an upload | ||
override = false // Whether to override version artifacts already published | ||
pkg { | ||
userOrg = rootProject.ext.mapboxBintrayUserOrg | ||
repo = rootProject.ext.mapboxBintrayRepoName | ||
name = rootProject.ext.mapboxBintrayPackageName | ||
desc = rootProject.ext.mapboxBintrayDescription | ||
|
||
websiteUrl = rootProject.ext.mapboxArtifactUrl | ||
issueTrackerUrl = rootProject.ext.mapboxArtifactTrackerUrl | ||
vcsUrl = rootProject.ext.mapboxArtifactVcsUrl | ||
|
||
licenses = [rootProject.ext.mapboxLicenseName] | ||
|
||
version { | ||
name = rootProject.ext.versionName | ||
desc = rootProject.ext.mapboxBintrayDescription | ||
released = new Date() | ||
mavenCentralSync { | ||
sync = false | ||
} | ||
} | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
MapboxMapsSdkPublication(MavenPublication) { | ||
pom.withXml { | ||
def dependenciesNode = asNode().getAt('dependencies')[0] ?: asNode().appendNode('dependencies') | ||
// Iterate over the compile dependencies (we don't want the test ones), adding a <dependency> node for each | ||
configurations.implementation.allDependencies.each { | ||
// Ensure dependencies such as fileTree are not included. | ||
if (it.name != 'unspecified') { | ||
def dependencyNode = dependenciesNode.appendNode('dependency') | ||
dependencyNode.appendNode('groupId', it.group) | ||
dependencyNode.appendNode('artifactId', it.name) | ||
dependencyNode.appendNode('version', it.version) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |