api / org.gradle.plugins.ide.idea.model / IdeaModel

IdeaModel

open class IdeaModel

DSL-friendly model of the IDEA project information. First point of entry when it comes to customizing the IDEA generation.

See the examples in docs for IdeaModule or IdeaProject.

Constructors

<init>

IdeaModel()

DSL-friendly model of the IDEA project information. First point of entry when it comes to customizing the IDEA generation.

See the examples in docs for IdeaModule or IdeaProject.

Functions

getModule

open fun getModule(): IdeaModule

Configures IDEA module information.

For examples see docs for IdeaModule.

getProject

open fun getProject(): IdeaProject

Configures IDEA project information.

For examples see docs for IdeaProject.

getTargetVersion

open fun getTargetVersion(): String

Configures the target IDEA version.

getWorkspace

open fun getWorkspace(): IdeaWorkspace

Configures IDEA workspace information.

For examples see docs for IdeaWorkspace.

module

open fun module(closure: Closure<Any>): Unit
open fun module(action: Action<in IdeaModule>): Unit

Configures IDEA module information.

For examples see docs for IdeaModule.

pathVariables

open fun pathVariables(pathVariables: MutableMap<String, File>): Unit

Adds path variables to be used for replacing absolute paths in resulting files (*.iml, etc.).

For example see docs for IdeaModule.

project

open fun project(closure: Closure<Any>): Unit
open fun project(action: Action<in IdeaProject>): Unit

Configures IDEA project information.

For examples see docs for IdeaProject.

setModule

open fun setModule(module: IdeaModule): Unit

setProject

open fun setProject(project: IdeaProject): Unit

setTargetVersion

open fun setTargetVersion(targetVersion: String): Unit

setWorkspace

open fun setWorkspace(workspace: IdeaWorkspace): Unit

workspace

open fun workspace(closure: Closure<Any>): Unit
open fun workspace(action: Action<in IdeaWorkspace>): Unit

Configures IDEA workspace information.

For examples see docs for IdeaWorkspace.

Extension Properties

ext

val IdeaModel.ext: ExtraPropertiesExtension

Retrieves the ext extension.

Extension Functions

ext

fun IdeaModel.ext(configure: ExtraPropertiesExtension.() -> Unit): Unit

Configures the ext extension.