Class SpringQuickstartExtension

java.lang.Object
io.gitlab.ntduycse.extension.SpringQuickstartExtension

public class SpringQuickstartExtension extends Object
Gradle DSL extension registered as spring { } on the project.
  • Field Details

    • EXTENSION_NAME

      public static final String EXTENSION_NAME
      See Also:
    • DEFAULT_ENABLED_CONVENTIONS

      public static final List<Convention> DEFAULT_ENABLED_CONVENTIONS
    • DEFAULT_JACOCO_EXCLUDED_PATTERNS

      public static final List<String> DEFAULT_JACOCO_EXCLUDED_PATTERNS
    • DEFAULT_MAPSTRUCT_COMPILE_ARGS

      public static final List<String> DEFAULT_MAPSTRUCT_COMPILE_ARGS
    • DEFAULT_TEST_COVERAGE

      public static final BigDecimal DEFAULT_TEST_COVERAGE
    • DEFAULT_PMD_RULES_MIN_PRIORITY

      public static final int DEFAULT_PMD_RULES_MIN_PRIORITY
      See Also:
    • DEFAULT_UNIT_TEST_DIR

      public static final String DEFAULT_UNIT_TEST_DIR
      See Also:
    • DEFAULT_INTEGRATION_TEST_DIR

      public static final String DEFAULT_INTEGRATION_TEST_DIR
      See Also:
  • Constructor Details

    • SpringQuickstartExtension

      @Inject public SpringQuickstartExtension(org.gradle.api.model.ObjectFactory objects)
  • Method Details

    • getCoverageExclusion

      public org.gradle.api.provider.ListProperty<String> getCoverageExclusion()
      Ant-style patterns excluded from JaCoCo classDirectories for jacocoTestReport and jacocoTestCoverageVerification. Defaults to DEFAULT_JACOCO_EXCLUDED_PATTERNS. Use set(...) or set([]) to replace that list entirely; an empty list applies no excludes.
      Returns:
      the coverage exclusion patterns
    • getCoverageThreshold

      public org.gradle.api.provider.Property<BigDecimal> getCoverageThreshold()
      Minimum line coverage (0.0–1.0) for jacocoTestCoverageVerification. Default 0.90 (90%).
      Returns:
      the coverage threshold
    • getEnabled

      public org.gradle.api.provider.SetProperty<Convention> getEnabled()
      Enabled conventions. Defaults to DEFAULT_ENABLED_CONVENTIONS. Use set(...) or set([]) to replace that list entirely; an empty list applies no conventions.
      Returns:
      the enabled conventions
    • getIntegrationTestDir

      public org.gradle.api.provider.Property<String> getIntegrationTestDir()
      Directory for integration tests. Defaults to DEFAULT_INTEGRATION_TEST_DIR.
      Returns:
      the integration test directory
    • getJavaVersion

      public org.gradle.api.provider.Property<org.gradle.api.JavaVersion> getJavaVersion()
      Java language version for java { toolchain { languageVersion = ... } }. Defaults to JavaVersion.VERSION_21.
      Returns:
      the Java language version
    • getMapstructCompileArgs

      public org.gradle.api.provider.ListProperty<String> getMapstructCompileArgs()
      MapStruct compiler arguments for JavaCompile tasks. Defaults to DEFAULT_MAPSTRUCT_COMPILE_ARGS. Use set(...) or set([]) to replace that list entirely; an empty list applies no arguments.
      Returns:
      the MapStruct compiler arguments
    • getPmdRulesMinPriority

      public org.gradle.api.provider.Property<Integer> getPmdRulesMinPriority()
      Minimum priority for PMD rules. Defaults to DEFAULT_PMD_RULES_MIN_PRIORITY.
      Returns:
      the minimum priority for PMD rules
    • getRepoType

      public org.gradle.api.provider.Property<RepositoryType> getRepoType()
      Returns:
      the repository type
    • getUnitTestDir

      public org.gradle.api.provider.Property<String> getUnitTestDir()
      Directory for unit tests. Defaults to DEFAULT_UNIT_TEST_DIR.
      Returns:
      the unit test directory