# Gradle 1.7-rc-1: IDEA plugin doesn't work

**URL:** <https://discuss.gradle.org/t/gradle-1-7-rc-1-idea-plugin-doesnt-work/2037>\
**Category:** Old Forum Archive\
**Created:** [July 3, 2013, 5:31pm UTC](https://discuss.gradle.org/t/gradle-1-7-rc-1-idea-plugin-doesnt-work/2037 "2013-07-03T17:31:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris\_jones\_yar](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/chris_jones_yar/32/82_2.png) [@chris\_jones\_yar](https://discuss.gradle.org/u/chris_jones_yar)\
**Post date:** [July 3, 2013, 5:31pm UTC](https://discuss.gradle.org/t/gradle-1-7-rc-1-idea-plugin-doesnt-work/2037/1 "2013-07-03T17:31:00Z")

</div>

I have a custom plugin in buildSrc. That plugin includes this line:

```gradle
project.apply(plugin: 'idea')

```

When running with Gradle-1.7-rc-1, in a Scala-using subproject, I get this error:

```gradle
> Could not find property 'ideaProject' on task set.

```

This works fine with 1.6.

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [July 3, 2013, 6:25pm UTC](https://discuss.gradle.org/t/gradle-1-7-rc-1-idea-plugin-doesnt-work/2037/2 "2013-07-03T18:25:00Z")

</div>

Did you do a _clean_ build after switching Gradle versions? (That’s required.)

---

<div class="post-metadata">

**Author:** ![chris\_jones\_yar](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/chris_jones_yar/32/82_2.png) [@chris\_jones\_yar](https://discuss.gradle.org/u/chris_jones_yar)\
**Post date:** [July 8, 2013, 9:13pm UTC](https://discuss.gradle.org/t/gradle-1-7-rc-1-idea-plugin-doesnt-work/2037/3 "2013-07-08T21:13:00Z")

</div>

Sorry for the slow reply. Yes, I just tried this: 1. gradlew clean 2. Edit gradle/wrapper/gradle-wrapper.properties to set 1.7-rc-1 3. gradlew clean

…same result.

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [July 8, 2013, 9:21pm UTC](https://discuss.gradle.org/t/gradle-1-7-rc-1-idea-plugin-doesnt-work/2037/4 "2013-07-08T21:21:00Z")

</div>

To my knowledge, no changes were made to the IDEA and Scala plugins for 1.7. The problem you are describing might be a symptom of another problem, either with Gradle or with your plugin/build script. To investigate further, I’d need a way to reproduce this.

---

<div class="post-metadata">

**Author:** ![chris\_jones\_yar](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/chris_jones_yar/32/82_2.png) [@chris\_jones\_yar](https://discuss.gradle.org/u/chris_jones_yar)\
**Post date:** [July 8, 2013, 11:02pm UTC](https://discuss.gradle.org/t/gradle-1-7-rc-1-idea-plugin-doesnt-work/2037/5 "2013-07-08T23:02:00Z")

</div>

This code was added to configureForScalaPlugin() in IdeaPlugin.groovy between 1.6 and 1.7-rc-1:

```gradle
project.plugins.withType(ScalaBasePlugin) {
            //see IdeaScalaConfigurer
            project.tasks.ideaModule.dependsOn(project.rootProject.tasks.ideaProject)
        }

```

I can’t give you access to this project, but I can show you the stack trace:

```gradle
Caused by: groovy.lang.MissingPropertyException: Could not find property 'ideaProject' on task set.
 at org.gradle.api.internal.AbstractDynamicObject.propertyMissingException(AbstractDynamicObject.java:43)
 at org.gradle.api.internal.AbstractDynamicObject.getProperty(AbstractDynamicObject.java:35)
 at org.gradle.api.internal.CompositeDynamicObject.getProperty(CompositeDynamicObject.java:94)
 at org.gradle.api.internal.tasks.DefaultTaskContainer_Decorated.getProperty(Unknown Source)
 at org.gradle.plugins.ide.idea.IdeaPlugin$_configureForScalaPlugin_closure8.doCall(IdeaPlugin.groovy:179)
 at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:58)
 at org.gradle.api.internal.Actions$FilteredAction.execute(Actions.java:203)
 at org.gradle.api.internal.DefaultDomainObjectCollection.all(DefaultDomainObjectCollection.java:110)
 at org.gradle.api.internal.DefaultDomainObjectCollection.all(DefaultDomainObjectCollection.java:115)
 at org.gradle.api.internal.DefaultDomainObjectCollection.withType(DefaultDomainObjectCollection.java:126)
 at org.gradle.api.DomainObjectCollection$withType.call(Unknown Source)
 at org.gradle.plugins.ide.idea.IdeaPlugin.configureForScalaPlugin(IdeaPlugin.groovy:177)
 at org.gradle.plugins.ide.idea.IdeaPlugin.onApply(IdeaPlugin.groovy:60)
 at org.gradle.plugins.ide.internal.IdePlugin.apply(IdePlugin.groovy:37)
 at org.gradle.plugins.ide.internal.IdePlugin.apply(IdePlugin.groovy)

```

It looks like it now requires the idea plugin to be applied to the root project. In my case, the root project doesn’t have any code in it.

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [July 9, 2013, 7:24pm UTC](https://discuss.gradle.org/t/gradle-1-7-rc-1-idea-plugin-doesnt-work/2037/6 "2013-07-09T19:24:00Z")

</div>

The IDEA and Eclipse plugins expect that they are always being applied to the root project, no matter if it contains code or not (typically it doesn’t). This is especially important for Scala because the Scala compiler(s) to be used can only be declared in the ‘.ipr’ file.
