Gradle

Plugins

  1. Axion plugin

    We are using Gradle's axion-release plugin for release & version management.

    If current commit is tagged commit, project has a release version( i.e., 0.1.0). If there were any commits after last tag, project is in SNAPSHOT version( i.e., 0.1.1-SNAPSHOT).

    axion-release follows the structure of git, only knows about tags on given branch.

Usage

first time generating a new library project

gradle init --type kotlin-library --dsl kotlin
Options for all gradle commands: -D or --system-prop, -P or --project-prop, -m or --dry-run

Check Task Dependencies With a Dry Run with dryRun: -m or --dry-run i.e., gradle publish -m

Version

display computed version

gradle cV
gradle currentVersion
# to get version # as plain text
export VERSION=$(gradle cV -q -Prelease.quiet)
echo $VERSION

Verification

Spotless tasks

Quarkus tasks

Build

build jar

Run

Release

bump git Tag and Push

Changelog

With every release, run git-chglog

Publish

publish after release

Docker

local testing

pull a remote image and locally use it as base image

Dependencies

Gradle

Reference

Last updated

Was this helpful?