Class VersionCorrector

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

public class VersionCorrector extends Object
  • Constructor Details

  • Method Details

    • computeAndSetVersion

      public void computeAndSetVersion()
      Compute the vacant version and set it on all projects. The vacant version is the version from gradle.properties, or the first higher patch version that has no corresponding git tag. This must be called at configuration time so that Gradle's configuration resolution (which freezes artifact file paths) sees the correct version. The gradle.properties file is intentionally not modified — the next vacant version is always derived from git tags.