Coder Social home page Coder Social logo

orchit / maven-release-script Goto Github PK

View Code? Open in Web Editor NEW

This project forked from petergeneric/maven-release-script

0.0 3.0 0.0 19 KB

Maven release script for git that's Less Awful Than The Maven Release Plugin

License: MIT License

Shell 100.00%

maven-release-script's Introduction

maven-release-script

This script provides similar functionality to the Maven release script, but works nicely with git.

The script asks you for the version numbers if they are not provided and then:

  • builds the project with the "clean verify" target to make sure that tests pass
  • replaces the old dev version (most likely the snapshot version) with the release version (most likely the dev version without the -snapshot)
  • commits the release version
  • tags the commit with v${release version}
  • either -- release branch does not exist --- creates the release branch --- pushes current master with the commit to the server -- release branch does exist --- pulls the latest version from the repo --- rebases the master onto the release branch
  • updates the version to the next development version (most likely the old dev version +1 minor and -snapshot)
  • pushes changes and tags

As the script is supposed to be checked in along with your code it has a -u parameter that updates the script with the latest version from github.

This is forked from the repo: petergeneric/maven-release-script

Usage

Usage:
  release.sh [-a | [ -r RELEASE_VERSION ] [ -n NEXT_DEV_VERSION ] ]  [ -c ASSUMED_POM_VERSION ] [ -s ] [-i]
Updates release version, then builds and commits it

  -a    Shorthand for -a auto -n auto
  -r    Sets the release version number to use ('auto' to use the version in pom.xml)
  -n    Sets the next development version number to use (or 'auto' to increment release version)
  -c    Assume this as pom.xml version without inspecting it with xmllint
  -i    Ignore untracked git files

  -u    update the script from github
  -h    For this message

maven-release-script's People

Contributors

petergeneric avatar pcornelissen avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.