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()
      Bump the version in gradle.properties to prepare for the next release. The build itself uses newVersion (set at configuration time). This writes newVersion+1 to gradle.properties so the next CI run starts from there.