A Gradle plugin for hooking up a Java Agent for Java And Android projects.
This plugin will attach the agent you specify to the run
, test
, installDist
tasks for Java projects and test
tasks for Android projects.
buildscript {
repositories {
maven { url 'https://jitpack.io' }
}
dependencies{
classpath "com.github.alexxxdev:agent-gradle-plugin:1.1.1"
}
}
apply plugin: 'com.github.alexxxdev.agent'
// all of these are optional and default to true
applicationAgent {
applyToTests true
applyToRun true
applyToStartScripts true
}
dependencies {
agent "com.foo:bar:1.2.3"
}