CoroutinesJavaAgentValueSource

A Gradle ValueSource that creates a Kotlin Coroutines Java Agent JAR file for debugging purposes.

This value source dynamically creates a minimal JAR file containing only the manifest needed to enable the Kotlin Coroutines debugging agent. The agent allows for enhanced debugging capabilities when working with coroutines in IntelliJ Platform-based applications.

The implementation:

  1. Scans the IntelliJ Platform JARs to find the appropriate coroutines agent class

  2. Creates a JAR file with a manifest that specifies the found agent as the Premain-Class

  3. Returns the created JAR file for use as a -javaagent parameter

See also

ValueSource

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
interface Parameters : ValueSourceParameters

Properties

Link copied to clipboard
@get:Inject
abstract override val parameters: CoroutinesJavaAgentValueSource.Parameters?

Functions

Link copied to clipboard
Link copied to clipboard
open override fun obtain(): File

Creates and returns a Kotlin Coroutines Java Agent JAR file.