jmongard / Git.SemVersioning.Gradle

Gradle plugin for automatically versioning a project using semantic versioning and conventional commits with change log support based on git commit messages.
https://plugins.gradle.org/plugin/com.github.jmongard.git-semver-plugin
Apache License 2.0
38 stars 4 forks source link

Add a Settings plugin to automatically configure the `project.version` for all subprojects #29

Open tacascer opened 9 months ago

tacascer commented 9 months ago

Hi there,

I think having a Settings plugin to set the version from this plugin as the project.version property would be nice! The behavior is inspired from the reckon plugin.

P/S I'm willing to contribute this feature if you folks think it's a good addition

jmongard commented 9 months ago

Hi, Yes, this could be a good idea. Try implementing it if you like.

jmongard commented 4 months ago

Do you still thing this is a good Idea?

I saw some other plugin that had both a settings plugin and a project plugin. The settings plugin applied the project plugin to every project.

tacascer commented 4 months ago

So I was thinking about how we can support the version format behavior across subprojects

This API right here:

semver.semVersion.toInfoVersionString(commitCountStringFormat: String = "%03d", shaLength: Int = 0, version2: Boolean = true, appendPreReleaseLast: Boolean = false)