[GRADLE-1054] IDEA plugin should generate a project file which contains everything that the Gradle plugin for IDEA needs Created: 25/Jul/10 Updated: 11/Nov/13 Resolved: 11/Nov/13 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 0.9 |
Fix Version/s: | None |
Type: | Improvement | ||
Reporter: | Adam Murdoch | Assignee: | Unassigned |
Resolution: | Won't Fix | Votes: | 0 |
Description |
e.g. the Gradle home dir |
Comments |
Comment by Hans Dockter [ 29/Jul/10 ] |
@Adam I don't fully understand this issue. |
Comment by Adam Murdoch [ 29/Jul/10 ] |
To clarify:
The use case is that I have the Gradle plugin for IDEA installed, and I use the IDEA plugin to generate the IDEA project file. I'd like this generated IDEA project file to contain all the configuration that the Gradle plugin for IDEA needs, so that I can run the Gradle build from IDEA, without having to configure anything manually. At the moment, this might mean including the Gradle home setting in the generated project file, or changing the Gradle plugin for IDEA so that it doesn't need this to be specified in the project file. |
Comment by Ewan Dawson [ 25/Mar/11 ] |
A workaround is to include the following block in your build.gradle: ideaProject { withXml { provider -> def project = provider.node if (!project.component.find { it.@name == 'GradleSettings' }) { def component = new Node(project, "component", [name:"GradleSettings"]) component.appendNode("option", [name:"SDK_HOME", value:'$GRADLE_DIR$']) } } } This assumes you have a path variable GRADLE_DIR defined in IDEA. |