-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
175 additions
and
159 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
ext { | ||
mapboxArtifactGroupId = 'com.mapbox.mapboxsdk' | ||
mapboxArtifactId = 'mapbox-android-gestures' | ||
mapboxArtifactTitle = 'Mapbox Android Gestures Library' | ||
mapboxArtifactDescription = 'Mapbox Android Gestures Library' | ||
mapboxDeveloperName = 'Mapbox' | ||
mapboxDeveloperId = 'mapbox' | ||
mapboxArtifactUrl = 'https://github.com/mapbox/mapbox-gestures-android' | ||
mapboxArtifactVcsUrl = 'https://github.com/mapbox/mapbox-gestures-android.git' | ||
mapboxArtifactScmUrl = 'scm:git@github.com/mapbox/mapbox-gestures-android.git' | ||
mapboxArtifactLicenseName = 'BSD' | ||
mapboxArtifactLicenseUrl = 'https://opensource.org/licenses/BSD-2-Clause' | ||
versionName = project.hasProperty('VERSION_NAME') ? project.property('VERSION_NAME') : System.getenv('VERSION_NAME') | ||
|
||
mapboxBintrayUserOrg = 'mapbox' | ||
mapboxBintrayRepoName = 'mapbox' | ||
mapboxBintrayUser = project.hasProperty('BINTRAY_USER') ? project.property('BINTRAY_USER') : System.getenv('BINTRAY_USER') | ||
mapboxBintrayApiKey = project.hasProperty('BINTRAY_API_KEY') ? project.property('BINTRAY_API_KEY') : System.getenv('BINTRAY_API_KEY') | ||
mapboxGpgPassphrase = project.hasProperty('GPG_PASSPHRASE') ? project.property('GPG_PASSPHRASE') : System.getenv('GPG_PASSPHRASE') | ||
} |
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,91 @@ | ||
apply plugin: 'digital.wup.android-maven-publish' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'com.jfrog.bintray' | ||
apply plugin: 'com.jfrog.artifactory' | ||
apply from: file('../gradle/artifact-settings.gradle') | ||
|
||
publishing { | ||
publications { | ||
MapboxGesturesPublication(MavenPublication) { | ||
from components.android | ||
groupId project.ext.mapboxArtifactGroupId | ||
artifactId project.ext.mapboxArtifactId | ||
version project.ext.versionName | ||
|
||
afterEvaluate { | ||
artifact("$buildDir/outputs/aar/${project.name}-release.aar") | ||
artifact(androidSourcesJar) | ||
artifact(androidJavadocsJar) | ||
} | ||
|
||
pom.withXml { | ||
final mainNode = asNode() | ||
mainNode.appendNode('name', project.ext.mapboxArtifactTitle) | ||
mainNode.appendNode('description', project.ext.mapboxArtifactTitle) | ||
mainNode.appendNode('url', project.ext.mapboxArtifactUrl) | ||
|
||
final licenseNode = mainNode.appendNode('licenses').appendNode('license') | ||
licenseNode.appendNode('name', project.ext.mapboxArtifactLicenseName) | ||
licenseNode.appendNode('url', project.ext.mapboxArtifactLicenseUrl) | ||
licenseNode.appendNode('distribution', "repo") | ||
|
||
final developerNode = mainNode.appendNode('developers').appendNode('developer') | ||
developerNode.appendNode('id', project.ext.mapboxDeveloperId) | ||
developerNode.appendNode('name', project.ext.mapboxDeveloperName) | ||
|
||
final scmNode = mainNode.appendNode("scm") | ||
scmNode.appendNode("connection", project.ext.mapboxArtifactScmUrl) | ||
scmNode.appendNode("developerConnection", project.ext.mapboxArtifactScmUrl) | ||
scmNode.appendNode("url", project.ext.mapboxArtifactUrl) | ||
} | ||
|
||
} | ||
} | ||
} | ||
|
||
bintray { | ||
user = mapboxBintrayUser | ||
key = mapboxBintrayApiKey | ||
publications = ['MapboxGesturesPublication'] | ||
pkg { | ||
repo = project.ext.mapboxBintrayRepoName | ||
name = project.ext.mapboxArtifactId | ||
userOrg = project.ext.mapboxBintrayUserOrg | ||
licenses = [project.ext.mapboxArtifactLicenseName] | ||
vcsUrl = project.ext.mapboxArtifactVcsUrl | ||
publish = false | ||
version { | ||
name = project.ext.versionName | ||
desc = project.ext.mapboxArtifactDescription | ||
released = new Date() | ||
gpg { | ||
sign = true | ||
passphrase = mapboxGpgPassphrase | ||
} | ||
mavenCentralSync { | ||
sync = false | ||
} | ||
} | ||
} | ||
} | ||
|
||
artifactory { | ||
contextUrl = 'http://oss.jfrog.org' | ||
publish { | ||
repository { | ||
repoKey = 'oss-snapshot-local' | ||
username = mapboxBintrayUser | ||
password = mapboxBintrayApiKey | ||
} | ||
defaults { | ||
publications('MapboxGesturesPublication') | ||
} | ||
} | ||
} | ||
|
||
|
||
tasks.withType(Javadoc) { | ||
options.addStringOption('encoding', 'UTF-8') | ||
options.addStringOption('docencoding', 'UTF-8') | ||
options.addStringOption('charset', 'UTF-8') | ||
} |
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,19 @@ | ||
apply from: "${rootDir}/gradle/dependencies.gradle" | ||
|
||
android.libraryVariants.all { variant -> | ||
def name = variant.name | ||
task "javadoc$name"(type: Javadoc) { | ||
description = "Generates javadoc for build $name" | ||
failOnError = false | ||
destinationDir = new File(destinationDir, variant.baseName) | ||
source = variant.sourceSets.collect { it.java.sourceFiles }.inject { m, i -> m + i } | ||
classpath = files(android.bootClasspath) | ||
options.windowTitle("$POM_NAME $VERSION_NAME Reference") | ||
options.docTitle("$POM_NAME $VERSION_NAME") | ||
options.header("$POM_NAME $VERSION_NAME Reference") | ||
options.bottom("© 2015–2019 Mapbox. All rights reserved.") | ||
options.links("http://docs.oracle.com/javase/7/docs/api/") | ||
options.linksOffline("http://d.android.com/reference/", "$System.env.ANDROID_HOME/docs/reference") | ||
exclude '**/R.java', '**/BuildConfig.java', '**/*.kt' | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.