Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle Support #107 #156

Merged
merged 2 commits into from
Jan 2, 2020
Merged

Conversation

balajiv113
Copy link
Contributor

The following updates are done to the existing pull request #149

  • Support for atomic release (Previously each modules will be released individually)
  • Support for uploading artifacts to nexus

Prerequisite

  • Below environment variables should be configured,
    SONATYPE_NEXUS_USERNAME
    SONATYPE_NEXUS_PASSWORD

Command
Execute the following command to start release build,

gradlew release -Drelease.useAutomaticVersion=true

The following changes are done automatically by this command,

  • Build the complete project (including all modules)
  • Creates a release tag (tag format - sirix-{version}>) in the head
  • Updates the gradle.properties file to next snapshot version
  • Push the following changes to git repository
  • Publishes all the generated jars (Eg: sirix.jar, sirix-sources.jar, sirix-javadoc.jar) to nexus repository.

Note

  • Command line git push should not prompt for username and password. This can be verified by just running git push and validate whether username and password is not prompted
  • In order to skip any task use -x and the task name.
    Eg: To exclude publishing of jars to nexus,
    gradlew release -Drelease.useAutomaticVersion=true -x uploadPublications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants