rising3 / semver-gradle-plugin

Gradle plugin for Updates the project version.A plugin that can updating the semantic versions like `yarn version` command.
Apache License 2.0
15 stars 7 forks source link

Prevent reorganizing gradle.properties when incrementing version #25

Open nilscript opened 1 year ago

nilscript commented 1 year ago

Problem

I try to increment the version in gradle.properties but the plugin not only increments the version but reorganizes the file aswell, a behaivor which is most unwanted as the file is made for humans to freely edit. Scrambling properties around make noone want to work with it. Also comments get's deleted.

Possible solution

Rewrite the parser to only replace the old version substring with the new version without reogranizing the entire file.

Other observations

The reorganization of properties is not even stable. When incrementing minor, major or patch the properties get's slightly diffrent orderings.

Hildebrand-Ritense commented 9 months ago

Aah what a shame. I've been looking around and trying quite a number of Gradle semver plugins. This one ticks almost all of the boxes, has a nice number of configuration options but this, the total rewrite of the gradle.properties, does hurt.

Seeing the commit activity I don't think this will change any time soon right? @rising3