Class HKJExtension
java.lang.Object
org.higherkindedj.gradle.HKJExtension
Extension DSL for the HKJ Gradle plugin.
hkj {
version = "0.3.7-SNAPSHOT"
preview = true
spring = false
skills = false
checks {
pathTypeMismatch = true
}
}
-
Constructor Summary
ConstructorsConstructorDescriptionHKJExtension(org.gradle.api.model.ObjectFactory objects) Creates the extension. -
Method Summary
Modifier and TypeMethodDescriptionvoidchecks(org.gradle.api.Action<? super HKJChecksExtension> action) Configures compile-time checks.Compile-time check configuration.abstract org.gradle.api.provider.Property<Boolean> Whether to add --enable-preview flags.abstract org.gradle.api.provider.Property<Boolean> Whether to install Claude Code skills into the project's .claude/skills/ directory.abstract org.gradle.api.provider.Property<Boolean> Whether to add hkj-spring-boot-starter.abstract org.gradle.api.provider.Property<String> HKJ library version.
-
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
HKJ library version. Defaults to the plugin version.- Returns:
- the version property
-
getPreview
Whether to add --enable-preview flags. Defaults to true.- Returns:
- the preview property
-
getSpring
Whether to add hkj-spring-boot-starter. Defaults to false.- Returns:
- the spring integration property
-
getSkills
Whether to install Claude Code skills into the project's .claude/skills/ directory. Defaults to false. When enabled, thehkjInstallSkillstask runs automatically during the build.- Returns:
- the skills property
-
getChecks
Compile-time check configuration.- Returns:
- the checks extension
-
checks
Configures compile-time checks.- Parameters:
action- the configuration action
-