Skip to content

torstenzander/simple-semantic-versioning-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Semantic Versioning Plugin

Gradle Package

Plugin Portal

This plugin increases the semantic version in gradle.properties by one for patch, minor and major version updates. You can define additional files in your gradle.build configuration and the matching prefix. The prefix to be the same key number in the files and prefixes array in order to work.

i.E. Only prefix=2.2.0 will be replaced in your additional files.

In gradle.properties

version=12.2.1
plugins {
    id 'de.tzander.gradle.simplesemanticversioning' version '0.8.0'
}

simplesemanticversioning {
    files = [".gitlab-ci.yml", "Dockerfile"]
    prefixes = ["somePrefix", ""]
}

Gradle task for increasing the version

gradle increasePatch 12.2.1 > 12.2.2

gradle increaseMinor 12.2.1 > 12.3.0

gradle increaseMajor 12.2.1 > 13.0.0

Possible version declarations

  • x.x.x
  • x.x.x-XX
  • x.x.x.XX

After the Version only - or . are allowed

About

A gradle plugin for updating semantic versions also in additional files like gitlab-ci or Dockerfiles.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages