Class HKJExtension

java.lang.Object
org.higherkindedj.gradle.HKJExtension

public abstract class HKJExtension extends Object
Extension DSL for the HKJ Gradle plugin.
hkj {
    version = "0.3.7-SNAPSHOT"
    preview = true
    spring = false
    skills = false
    checks {
        pathTypeMismatch = true
    }
}
  • Constructor Details

    • HKJExtension

      @Inject public HKJExtension(org.gradle.api.model.ObjectFactory objects)
      Creates the extension.
      Parameters:
      objects - the Gradle object factory for creating nested extensions
  • Method Details

    • getVersion

      public abstract org.gradle.api.provider.Property<String> getVersion()
      HKJ library version. Defaults to the plugin version.
      Returns:
      the version property
    • getPreview

      public abstract org.gradle.api.provider.Property<Boolean> getPreview()
      Whether to add --enable-preview flags. Defaults to true.
      Returns:
      the preview property
    • getSpring

      public abstract org.gradle.api.provider.Property<Boolean> getSpring()
      Whether to add hkj-spring-boot-starter. Defaults to false.
      Returns:
      the spring integration property
    • getSkills

      public abstract org.gradle.api.provider.Property<Boolean> getSkills()
      Whether to install Claude Code skills into the project's .claude/skills/ directory. Defaults to false. When enabled, the hkjInstallSkills task runs automatically during the build.
      Returns:
      the skills property
    • getChecks

      public HKJChecksExtension getChecks()
      Compile-time check configuration.
      Returns:
      the checks extension
    • checks

      public void checks(org.gradle.api.Action<? super HKJChecksExtension> action)
      Configures compile-time checks.
      Parameters:
      action - the configuration action