# Idea plugin and multi-project setup

**URL:** <https://discuss.gradle.org/t/idea-plugin-and-multi-project-setup/17911>\
**Category:** Bugs\
**Created:** [June 3, 2016, 7:50pm UTC](https://discuss.gradle.org/t/idea-plugin-and-multi-project-setup/17911 "2016-06-03T19:50:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kos](https://avatars.discourse-cdn.com/v4/letter/k/c5a1d2/32.png) [@kos](https://discuss.gradle.org/u/kos)\
**Post date:** [June 3, 2016, 7:50pm UTC](https://discuss.gradle.org/t/idea-plugin-and-multi-project-setup/17911/1 "2016-06-03T19:50:38Z")

</div>

I’m trying to setup a multi-module gradle project with Idea support. It works until I’m adding project-wide `gradle.properties` to the mix. Here’s an example:

gradle.properties:

```gradle
javaVersion = 1.8

```

gradle.settings:

```gradle
include 'module_a'

```

build.gradle:

```gradle
allprojects {
  apply plugin: 'idea'
  idea {
    project {
      jdkName = javaVersion
    }
  }
}

```

`module_a` is an empty sub-folder.

`gradle idea` fails with this:

```gradle
Build file 'project/build.gradle' line: 7

* What went wrong:
A problem occurred evaluating root project 'project'.
> Cannot set property 'jdkName' on null object

```

Looks like a bug to me, but I’m not sure. What could be the reason?  
Gradle 2.12
