Package io.gitlab.ntduycse.convention
Class RepoTypeConvention
java.lang.Object
io.gitlab.ntduycse.convention.RepoTypeConvention
Applies repo-type plugins and task rules per design normative order (step 4).
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigure(org.gradle.api.Project project, SpringQuickstartExtension devkit) ValidatesSpringQuickstartExtension.getRepoType()and applies library vs application conventions.
-
Method Details
-
configure
ValidatesSpringQuickstartExtension.getRepoType()and applies library vs application conventions. Intended to run fromproject.afterEvaluate.When
repoTypeis not explicitly set, it is auto-detected from the applied plugins:java-library→RepositoryType.LIBRARYjava(withoutjava-library) →RepositoryType.APPLICATION
InvalidUserDataExceptionis thrown asking the user to either applyjava/java-libraryor setspring.repoTypeexplicitly.- Parameters:
project- the projectdevkit- the devkit extension
-