Class VersionCorrector
java.lang.Object
org.modelingvalue.gradle.mvgplugin.VersionCorrector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCompute the vacant version and set it on all projects.generate()Bump the version in gradle.properties to prepare for the next release.
-
Constructor Details
-
VersionCorrector
-
-
Method Details
-
getChangedFiles
-
computeAndSetVersion
public void computeAndSetVersion()Compute the vacant version and set it on all projects. This must be called at configuration time so that Gradle's configuration resolution (which freezes artifact file paths) sees the correct version. -
generate
Bump the version in gradle.properties to prepare for the next release. The build itself usesnewVersion(set at configuration time). This writes newVersion+1 to gradle.properties so the next CI run starts from there.
-