Plugin class:

plugins {
    id 'name.remal.agent' version '1.5.0'
plugins {
    id("name.remal.agent") version "1.5.0"


The plugin applies these plugins:


The plugin configures Java agents:

  • Creates agent configuration
  • Adds -javaagent command-line parameter to all tasks of JavaForkOptions type


Also the plugin configures application plugin:

  • Adds agent libs to main distribution
  • Adds -javaagent command-line parameter to scripts generated by CreateStartScripts tasks