# IdeaPlugin

abstract class IdeaPlugin : IdePlugin(source)

Adds a GenerateIdeaModule task. When applied to a root project, also adds a GenerateIdeaProject task. For projects that have the Java plugin applied, the tasks receive additional Java-specific configuration.

#### Since

1.0

#### See also

IDEA plugin reference

## Constructors

IdeaPlugin
Link copied to clipboard
@Inject
constructor(uniqueProjectNameProvider: UniqueProjectNameProvider, artifactRegistry: IdeArtifactRegistry, projectPathRegistry: ProjectStateRegistry)

## Properties

SOURCE_COMPATIBILITY
Link copied to clipboard
val SOURCE_COMPATIBILITY: Function<Project, JavaVersion>
The source compatibility.
TARGET_COMPATIBILITY
Link copied to clipboard
val TARGET_COMPATIBILITY: Function<Project, JavaVersion>
The target compatibility.

## Functions

addWorker
Link copied to clipboard
open fun addWorker(worker: Task)
apply
Link copied to clipboard
abstract fun apply(target: T)
open fun apply(target: Project)
Apply this plugin to the given target object.
getCleanTask
Link copied to clipboard
open fun getCleanTask(): TaskProvider<out Task>
getLifecycleTask
Link copied to clipboard
open fun getLifecycleTask(): TaskProvider<out Task>
getModel
Link copied to clipboard
open fun getModel(): IdeaModel
Returns the model.
isRoot
Link copied to clipboard
open fun isRoot(): Boolean
toGradleCommand
Link copied to clipboard
open fun toGradleCommand(project: Project): String