version¶
Usage: lftools-uv version [OPTIONS] COMMAND [ARGS]...
Version bump script for Maven based projects
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ bump Version bump pom files in a Maven project by x.(y+1).z or │
│ x.y.(z+1). │
│ release Version bump pom files in a Maven project from SNAPSHOT to │
│ RELEASE_TAG. │
│ patch Patch a project with git.bundles and then version bump. │
╰──────────────────────────────────────────────────────────────────────────────╯
Commands¶
bump¶
Usage: lftools-uv 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
Args: release_tag: The release tag to use for version bumping
Examples: lftools-uv version bump "Lithium-SR1" lftools-uv version bump
"2024.01.15"
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * release_tag TEXT Release tag to use for version bumping │
│ [required] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
patch¶
Usage: lftools-uv 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.
Args: release_tag: Release tag to use for version bumping after patching
patch_dir: Directory containing git.bundle patches to apply project: Project
name to use when tagging (default: OpenDaylight)
Examples: lftools-uv version patch "Lithium-SR1" /path/to/patches lftools-uv
version patch "1.2.3" /path/to/patches --project "MyProject"
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * release_tag TEXT Release tag to use for version bumping after │
│ patching │
│ [required] │
│ * patch_dir TEXT Directory containing git.bundle patches to apply │
│ [required] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --project TEXT Project name to use when tagging │
│ [default: OpenDaylight] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
release¶
Usage: lftools-uv 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.
Args: release_tag: The release tag to replace SNAPSHOT versions with
Examples: lftools-uv version release "Lithium" lftools-uv version release
"1.2.3"
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * release_tag TEXT Release tag to replace SNAPSHOT versions │
│ [required] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯