![]() unique versions on branches: the output of git describe and the branch name, e.g.If the major or minor versions in version.json have been changed, a major or minor bump occurs and the patch version is reset to 0. any commit merged into the default branch generates a new version and tags it.a new, uninitialised repo => generate a new version.json file with a default branch (master, but can be changed per repo, a major and a minor version to configure those bumps).To do so, I did use Git tags and wrote a script for it. In my case, all I needed were unique version numbers automatically tagged upon a PR being merged into develop or master, and unique version numbers for each commit on a branch. For your case, however, it's a quick off the shelf solution. That seemed too complex a workflow for my needs and was not useful for projects that didn't use Gradle. branch name and whether it was dirty or not. ![]() However, that plugin worked by counting all the commits for a patch version, configured major and minor via a Gradle extension and appended metadata information, e.g. Firstly, by using a Gradle plugin, similar to the nebula-release plugin linked above. I have previously solved your proposed issue in 2 separate ways. tProperty('artifactBuildNumber', nextbuildnum.toString()) Integer nextbuildnum = ( ((props.getProperty('artifactBuildNumber')) as BigDecimal) + 1 ) Props.load(propsFile.newDataInputStream()) ':spring-cloud-starter-netflix-zuul:2.2.2.RELEASE'įile propsFile = new File('gradle.properties') ![]() ':spring-cloud-starter-netflix-eureka-client:2.2.2.RELEASE', Implementation ':spring-boot-starter-web', I have below task in my adle file which is used to auto-increment the build number so that my generated executable jar will have unique version name in the generated jar file. I have used gradle as a build tool for this spring boot application. I have spring boot application in my github public reposity. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |