Publish artifacts to Maven central#49
Merged
wcmatthysen merged 1 commit intoWorldWindEarth:developfrom Jun 4, 2019
wcmatthysen:maven-artifacts-publish
Merged
Publish artifacts to Maven central#49wcmatthysen merged 1 commit intoWorldWindEarth:developfrom wcmatthysen:maven-artifacts-publish
wcmatthysen merged 1 commit intoWorldWindEarth:developfrom
wcmatthysen:maven-artifacts-publish
Conversation
- Changed the `travis.yml` file by adding two deploy sections. The first `deploy` section invokes the `gradle artifactoryPublish` command on the `develop` branch. This deploys snapshots to artifactory when pull-requests are merged into `develop`. A `gradle bintrayUpload` command was added for the second section and will be executed on a tag. This means that whenever we release a version and tag it the artifacts will be uploaded to bintray with the abovementioned command. - Modified the `build.gradle` file by adding the necessary plugins and configuration to allow for snapshots to be published to artifactory and releases to be published to bintray. To achieve this we also had to add tasks to publish a sources-jar as well as a jar containing all of the javadocs.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the Change
Modified the
build.gradleandtravis.ymlfiles to allow us to publish snapshots to artifactory and releases to bintray depending on whether the Travis build has been done on thedevelopbranch or a release-tag. The changes are similar to the way in which artifacts are published for WorldWindAndroid with a couple of differences here and there that are specific to this project.Why Should This Be In Core?
We want to get to a point where WorldWind can be pulled in as a dependency via Maven. At the moment other non-official jars have been published that might be outdated. By adding these changes we ensure that our latest Travis builds get published so that they can be used by other 3rd-party projects.
Benefits
By allowing our
developbranch to be built on a regular basis and published as a snapshot version would allow for easier testing of unstable features. We also ensure that our latest stable branch can be pulled in easily via Maven and that 3rd-party projects are using the correct version.Potential Drawbacks
None
Applicable Issues
Issue #36