ComposeHotReloadArgumentProvider

class ComposeHotReloadArgumentProvider(val composeHotReloadAgentConfiguration: FileCollection, val enabled: Provider<Boolean>) : CommandLineArgumentProvider

Provides JVM arguments for enabling Compose Hot Reload functionality when running the IDE.

This argument provider configures the necessary JVM flags to support hot reloading of Compose UI components during development, including enabling enhanced class redefinition and attaching the Compose hot reload Java agent.

Throws

InvalidUserDataException

if the configuration doesn't resolve to exactly one JAR file.

Constructors

Link copied to clipboard
constructor(composeHotReloadAgentConfiguration: FileCollection, enabled: Provider<Boolean>)

Properties

Link copied to clipboard
@InputFiles
@PathSensitive(value = PathSensitivity.RELATIVE)
val composeHotReloadAgentConfiguration: FileCollection

The file collection containing the Compose hot reload agent JAR. This configuration must resolve to exactly one JAR file.

Link copied to clipboard
@Input
val enabled: Provider<Boolean>

Functions

Link copied to clipboard
open override fun asArguments(): List<String>

Returns the JVM arguments required for Compose hot reload: