Version

Usage: lftools version [OPTIONS] COMMAND [ARGS]...

  Version bump script for Maven based projects.

  In general, versions should be: <major>.<minor>.<micro>[-<human-readable-
  tag>]

  - Human readable tag should not have any dots in it
  - SNAPSHOT is used for development

  Scenarios:

          master before release:        x.y.z-SNAPSHOT (or x.y-SNAPSHOT in which case we treat it as x.y.0-SNAPSHOT)
          at release:                   x.y.z-Helium
          stable/helium after release:  x.y.(z+1)-SNAPSHOT
          master after release:         x.(y+1).0-SNAPSHOT
          Autorelease on master:        <human-readable-tag> is "PreLithium-<date>"
          Autorelease on stable/helium: <human-readable-tag> is "PreHeliumSR1-<date>"
          Release job on master:        <human-readable-tag> is "Lithium"
          Release job on stable/helium: <human-readable-tag> is "HeliumSR1"

  Some things have a date for a version, e.g., 2014.09.24.4

  * We treat this as YYYY.MM.DD.<minor>
  * Note that all such dates currently in ODL are in YANG tools
  * They are all now YYYY.MM.DD.7 since 7 is the minor version for yangtools

Options:
  --help  Show this message and exit.

Commands:
  bump     Version bump pom files in a Maven project by x.(y+1).z or...
  patch    Patch a project with git.bundles and then version bump.
  release  Version bump pom files in a Maven project from SNAPSHOT to...

Commands

bump

Usage: lftools version bump [OPTIONS] RELEASE_TAG

  Version bump pom files in a Maven project by x.(y+1).z or x.y.(z+1).

  This script performs version bumping as follows:

  1. Change YYYY.MM.DD.y.z-SNAPSHOT to YYYY.MM.DD.(y+1).0-SNAPSHOT
  2. Change YYYY.MM.DD.y.z-Helium to YYMMDD.y.(z+1)-SNAPSHOT
  3. Change x.y.z-SNAPSHOT versions to x.(y+1).0-SNAPSHOT
  4. Change x.y.z-RELEASE_TAG versions to x.y.(z+1)-SNAPSHOT and

Options:
  --help  Show this message and exit.

patch

Usage: lftools version patch [OPTIONS] RELEASE_TAG PATCH_DIR

  Patch a project with git.bundles and then version bump.

  Applies git.bundle patches to the project and then performs a version bump
  using RELEASE_TAG in order to version bump by x.y.(z+1)-SNAPSHOT.

Options:
  --project TEXT  Project name to use when tagging. (Default: OpenDaylight)
  --help          Show this message and exit.

release

Usage: lftools version release [OPTIONS] RELEASE_TAG

  Version bump pom files in a Maven project from SNAPSHOT to RELEASE_TAG.

  Searches poms for all instances of SNAPSHOT version and changes it to
  RELEASE_TAG.

Options:
  --help  Show this message and exit.