Class ProjectVersionPlugin

java.lang.Object
io.github.joke.conventionalversion.ProjectVersionPlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public class ProjectVersionPlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
Project mode, and the whole of both modes: settings mode is this plugin applied to every project.

Versions only the project it is applied to. A project that does not apply it is not versioned - that is the trade project mode makes, and the reason settings mode still exists: only settings mode covers projects with no build file, and projects included later.

  • Constructor Details

    • ProjectVersionPlugin

      public ProjectVersionPlugin()
  • Method Details

    • apply

      public void apply(org.gradle.api.Project project)
      Specified by:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>
    • assignment

      @VisibleForTesting protected AssignVersion assignment(org.gradle.api.Project project)
    • source

      @VisibleForTesting protected CatalogueSource source()