JavaAgentDependenciesExtension
abstract class JavaAgentDependenciesExtension @Inject constructor(project: Project, foundryProperties: FoundryProperties)(source)
An extension that simplifies dependency configuration for (test) Java agents in Gradle projects.
Provides utilities for managing Java agent dependencies during test execution and automatically configuring necessary JVM arguments.
Example usage in build.gradle.kts:
dependencies {
testJavaAgents {
mockitoAgent() // Deprecated, please don't use Mockito
javaAgent("com.example:custom-java-agent:1.0.0")
}
}
Content copied to clipboard