Skip to content

conclube/Autoversion-Gradle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Autoversion-Gradle


This repository contains only one important file, version.gradle. It's just a template file and currently depends on the gradle shadowJar plugin. To use this you can just copy the content of version.gradle into your project. Then all you need to do is put this in your build.gradle:


apply from: 'version.gradle'

Assuming your build.gradle and version.gradle exist in the same directory.


There exist three custom new tasks by default majorJar, minorjar and patchJar. First time running any of these tasks will produce a new version.properties holding version 1.0.0. But when running any of the three mentioned tasks above again will produce a new version.


Tasks

  • majorJar - Will reset the minor and patch version while also increase major version.
  • minorJar - Will reset the patch version and increase minor version.
  • patchJar - Will increase patch version.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors