Class RepoTypeConvention

java.lang.Object
io.gitlab.ntduycse.convention.RepoTypeConvention

public final class RepoTypeConvention extends Object
Applies repo-type plugins and task rules per design normative order (step 4).
  • Method Details

    • configure

      public static void configure(org.gradle.api.Project project, SpringQuickstartExtension devkit)
      Validates SpringQuickstartExtension.getRepoType() and applies library vs application conventions. Intended to run from project.afterEvaluate.

      When repoType is not explicitly set, it is auto-detected from the applied plugins:

      If neither plugin is applied an InvalidUserDataException is thrown asking the user to either apply java/java-library or set spring.repoType explicitly.
      Parameters:
      project - the project
      devkit - the devkit extension