Class IdeaModel
java.lang.Object
org.gradle.plugins.ide.idea.model.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
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConfigures IDEA module information.Configures IDEA project information.Configures the target IDEA version.Configures IDEA workspace information.void
Configures IDEA module information.void
module
(Action<? super IdeaModule> action) Configures IDEA module information.void
pathVariables
(Map<String, File> pathVariables) Adds path variables to be used for replacing absolute paths in resulting files (*.iml, etc.).void
Configures IDEA project information.void
project
(Action<? super IdeaProject> action) Configures IDEA project information.void
setModule
(IdeaModule module) void
setProject
(IdeaProject project) void
setTargetVersion
(String targetVersion) void
setWorkspace
(IdeaWorkspace workspace) void
Configures IDEA workspace information.void
workspace
(Action<? super IdeaWorkspace> action) Configures IDEA workspace information.
-
Constructor Details
-
IdeaModel
public IdeaModel()
-
-
Method Details
-
getModule
Configures IDEA module information.For examples see docs for
IdeaModule
. -
setModule
-
getProject
Configures IDEA project information.For examples see docs for
IdeaProject
. -
setProject
-
getWorkspace
Configures IDEA workspace information.For examples see docs for
IdeaWorkspace
. -
setWorkspace
-
getTargetVersion
Configures the target IDEA version. -
setTargetVersion
-
module
Configures IDEA module information.For examples see docs for
IdeaModule
. -
module
Configures IDEA module information.For examples see docs for
IdeaModule
.- Since:
- 3.5
-
project
Configures IDEA project information.For examples see docs for
IdeaProject
. -
project
Configures IDEA project information.For examples see docs for
IdeaProject
.- Since:
- 3.5
-
workspace
Configures IDEA workspace information.For examples see docs for
IdeaWorkspace
. -
workspace
Configures IDEA workspace information.For examples see docs for
IdeaWorkspace
.- Since:
- 3.5
-
pathVariables
Adds path variables to be used for replacing absolute paths in resulting files (*.iml, etc.).For example see docs for
IdeaModule
.- Parameters:
pathVariables
- A map with String->File pairs.
-