Class VersionCorrector

java.lang.Object
org.modelingvalue.gradle.mvgplugin.VersionCorrector

public class VersionCorrector extends Object
  • Constructor Details

  • Method Details

    • getChangedFiles

      public Set<Path> 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

      public VersionCorrector generate()
      Write the new version to gradle.properties if it changed. This should be called at execution time (in the mvgcorrector task action). Requires computeAndSetVersion() to have been called first.