semver-gradle-plugin icon indicating copy to clipboard operation
semver-gradle-plugin copied to clipboard

Prevent reorganizing gradle.properties when incrementing version

Open nilscript opened this issue 2 years ago • 1 comments

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.

nilscript avatar Mar 31 '23 07:03 nilscript

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

Hildebrand-Ritense avatar Jan 02 '24 14:01 Hildebrand-Ritense