Package com.onurkat.reclazz.gradle
Class ReclazzExtension
java.lang.Object
com.onurkat.reclazz.gradle.ReclazzExtension
Configuration for the Reclazz Gradle plugin, exposed as the
reclazz block.
Everything has a working default, so a Spring Boot project needs only to apply the plugin. Override any of these when the defaults do not fit.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.file.RegularFilePropertyAn explicit path to the agent jar.abstract org.gradle.api.provider.Property<String>The agent version to resolve ascom.onurkat.reclazz:reclazz-agent:<version>whengetAgentJar()is not set.abstract org.gradle.api.provider.Property<Boolean>Attach the agent to thebootRuntask when present.abstract org.gradle.api.provider.Property<Boolean>Attach the agent toTesttasks.Extra agent arguments as key/value pairs, appended askey=valueand joined with commas.abstract org.gradle.api.provider.Property<Boolean>Whether the agent is attached at all.abstract org.gradle.api.provider.Property<String>The agent platform, for examplespring.abstract org.gradle.api.provider.ListProperty<String>Directories the agent watches for recompiled classes.
-
Constructor Details
-
ReclazzExtension
public ReclazzExtension()
-
-
Method Details
-
getEnabled
Whether the agent is attached at all. Defaulttrue. -
getAgentJar
public abstract org.gradle.api.file.RegularFileProperty getAgentJar()An explicit path to the agent jar. When set, it wins overgetAgentVersion()and no dependency is resolved. Use this while the agent is not yet on a registry, or to pin a locally built jar. -
getAgentVersion
The agent version to resolve ascom.onurkat.reclazz:reclazz-agent:<version>whengetAgentJar()is not set. Defaults to the plugin version. -
getPlatform
The agent platform, for examplespring. Defaults tospringwhen the Spring Boot plugin is applied, and is otherwise left to the agent's own default. -
getWatchDirs
Directories the agent watches for recompiled classes. Defaults to the main source set output when empty. Multiple entries are joined with a semicolon. -
getArguments
Extra agent arguments as key/value pairs, appended askey=valueand joined with commas. These override the computedplatformandwatchDirs. -
getApplyToTest
Attach the agent toTesttasks. Defaulttrue. -
getApplyToBootRun
Attach the agent to thebootRuntask when present. Defaulttrue.
-