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()Write the new version to gradle.properties if it changed.
-
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
Write the new version to gradle.properties if it changed. This should be called at execution time (in the mvgcorrector task action). RequirescomputeAndSetVersion()to have been called first.
-