Skip to content

Publish artifacts to Maven central#49

Merged
wcmatthysen merged 1 commit intoWorldWindEarth:developfrom
wcmatthysen:maven-artifacts-publish
Jun 4, 2019
Merged

Publish artifacts to Maven central#49
wcmatthysen merged 1 commit intoWorldWindEarth:developfrom
wcmatthysen:maven-artifacts-publish

Conversation

@wcmatthysen
Copy link
Copy Markdown
Member

Description of the Change

Modified the build.gradle and travis.yml files to allow us to publish snapshots to artifactory and releases to bintray depending on whether the Travis build has been done on the develop branch 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 develop branch 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

- 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.
@wcmatthysen wcmatthysen changed the title Maven Artifacts Publishing. Publish artifacts to Maven central Jun 2, 2019
@wcmatthysen wcmatthysen added the task Not a bug label Jun 3, 2019
@wcmatthysen wcmatthysen modified the milestone: WWJ-CE 2.2.0 Jun 3, 2019
@wcmatthysen wcmatthysen added task Not a bug and removed task Not a bug labels Jun 3, 2019
@wcmatthysen wcmatthysen merged commit a024a74 into WorldWindEarth:develop Jun 4, 2019
@wcmatthysen wcmatthysen deleted the maven-artifacts-publish branch June 4, 2019 18:41
@wcmatthysen wcmatthysen added this to the WWJ-CE 2.2.0 milestone Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

task Not a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant