Wildcards property on idea project not working

Following the example (http://www.gradle.org/docs/current/groovydoc/org/gradle/plugins/ide/idea/model/IdeaProject.html) I have this:

import org.gradle.plugins.ide.idea.model.*
  apply plugin: 'idea'
  idea {
  project {
    wildcards += '!?*.yml'
    languageLevel = '1.7'

However using: Gradle 1.10

I get the following error when running: ./gradlew idea

20:48:23.676 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: groovy.lang.MissingPropertyException: Could not find property ‘wildcards’ on org.gradle.plugins.ide.idea.model.IdeaModel_Decorated@93e06df.

I must be doing something wrong?


Is that the full code you are using?

The error message seems to indicate you don’t have wildcards in the project {} block.