-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added setup for bintray release process
- Loading branch information
Showing
11 changed files
with
174 additions
and
181 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,6 @@ | ||
# Project-wide Gradle settings. | ||
VERSION_NAME=4.9.0-SNAPSHOT | ||
GROUP=com.mapbox.mapboxsdk | ||
|
||
POM_URL=https://github.com/mapbox/mapbox-java | ||
POM_SCM_URL=https://github.com/mapbox/mapbox-java | ||
POM_SCM_CONNECTION=scm:[email protected]:mapbox/mapbox-java.git | ||
POM_SCM_DEV_CONNECTION=scm:[email protected]:mapbox/mapbox-java.git | ||
|
||
POM_LICENCE_NAME=The Apache Software License, Version 2.0 | ||
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt | ||
POM_LICENCE_DIST=repo | ||
|
||
POM_DEVELOPER_ID=mapbox | ||
POM_DEVELOPER_NAME=Mapbox | ||
|
||
# Specifies the JVM arguments used for the daemon process. | ||
# The setting is particularly useful for tweaking memory settings. | ||
org.gradle.jvmargs=-Xmx2048M | ||
|
||
# When configured, Gradle will run in incubating parallel mode. | ||
# This option should only be used with decoupled projects. More details, visit | ||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | ||
# org.gradle.parallel=true | ||
|
||
# Publishing | ||
#NEXUS_USERNAME= | ||
#NEXUS_PASSWORD= | ||
#signing.keyId= | ||
#signing.password= | ||
#signing.secretKeyRingFile= | ||
|
||
org.gradle.jvmargs=-Xmx2048M |
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,24 @@ | ||
ext { | ||
|
||
mapboxArtifactGroupId = 'com.mapbox.mapboxsdk' | ||
mapboxArtifactId = project.hasProperty('POM_ARTIFACT_ID') ? project.property('POM_ARTIFACT_ID') : System.getenv('POM_ARTIFACT_ID') | ||
mapboxArtifactTitle = 'Mapbox Java SDK' | ||
mapboxArtifactDescription = project.hasProperty('POM_DESCRIPTION') ? project.property('POM_DESCRIPTION') : System.getenv('POM_DESCRIPTION') | ||
mapboxDeveloperName = 'Mapbox' | ||
mapboxDeveloperEmail = '[email protected]' | ||
mapboxDeveloperOrganization = 'Mapbox' | ||
mapboxDeveloperOrganizationUrl = 'http://www.mapbox.com' | ||
mapboxDeveloperId = 'mapbox' | ||
mapboxArtifactUrl = 'https://github.com/mapbox/mapbox-java' | ||
mapboxArtifactVcsUrl = 'https://github.com/mapbox/mapbox-java.git' | ||
mapboxArtifactScmUrl = 'scm:[email protected]:mapbox/mapbox-java.git' | ||
mapboxArtifactLicenseName = 'The Apache Software License, Version 2.0' | ||
mapboxArtifactLicenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
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,95 @@ | ||
apply plugin: 'digital.wup.android-maven-publish' | ||
apply plugin: 'java' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'com.jfrog.bintray' | ||
apply plugin: 'com.jfrog.artifactory' | ||
apply from: file('../gradle/artifact-settings.gradle') | ||
|
||
publishing { | ||
publications { | ||
MapboxJavaSDKPublication(MavenPublication) { | ||
from components.java | ||
groupId project.ext.mapboxArtifactGroupId | ||
artifactId project.ext.mapboxArtifactId | ||
version project.ext.versionName | ||
|
||
afterEvaluate { | ||
artifact("$buildDir/outputs/aar/${project.ext.mapboxArtifactId}-release.aar") | ||
artifact sourcesJar | ||
artifact javadocJar | ||
} | ||
|
||
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) | ||
developerNode.appendNode('email', project.ext.mapboxDeveloperEmail) | ||
developerNode.appendNode('organization', project.ext.mapboxDeveloperOrganization) | ||
developerNode.appendNode('organizationUrl', project.ext.mapboxDeveloperOrganizationUrl) | ||
|
||
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 = ['MapboxJavaSDKPublication'] | ||
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('MapboxJavaSDKPublication') | ||
} | ||
} | ||
} | ||
|
||
|
||
tasks.withType(Javadoc) { | ||
options.addStringOption('encoding', 'UTF-8') | ||
options.addStringOption('docencoding', 'UTF-8') | ||
options.addStringOption('charset', 'UTF-8') | ||
} |
Oops, something went wrong.