Class ReclazzPlugin

java.lang.Object
com.onurkat.reclazz.gradle.ReclazzPlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public class ReclazzPlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
Attaches the Reclazz hot-reload agent to a project's run and test JVMs.

Applying the plugin is enough for a Spring Boot project: bootRun and the test tasks start with -javaagent:reclazz-agent.jar=platform=spring,watchDirs=<main output>, so an edit and a build are picked up in place with no restart and no hand-written flag. The reclazz extension overrides any of it.

  • Constructor Details

    • ReclazzPlugin

      public ReclazzPlugin()
  • Method Details

    • apply

      public void apply(org.gradle.api.Project project)
      Specified by:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>