CompilerPluginConfig

Represents a container containing all the settings for a specific Kotlin compiler plugin.

This container is available for all Kotlin compilation tasks as a org.jetbrains.kotlin.gradle.tasks.BaseKotlinCompile.pluginOptions input.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun addPluginArgument(pluginId: String, option: SubpluginOption)

Adds a Kotlin compiler plugin option to the collection of options associated with the given plugin ID.

Link copied to clipboard
fun allOptions(): Map<String, List<SubpluginOption>>

Retrieves all options grouped by their corresponding plugin IDs.

Link copied to clipboard
@Input
fun getAsTaskInputArgs(): Map<String, String>

Combines all options for Kotlin compiler plugins into a single map of input arguments for the task.