Importing gradle project

Hi all,
I have problems with importing gradle scripts.
When I do that, no excludes from thew source files are respected.
For example I have:

sourceSets {
        main {
            java {
                srcDirs = [ 'src' ]
                exclude 'de/my/package/test/**'
       
}
   }
}
...

If it is imported into intellij, the package 'test' is not excluded from the source files.
Bildschirmfoto 2015-11-03 um 11.03.58.png
Is there something I could do, so the excluded files/directories are also excluded?

Thanks for any help.

Please sign in to leave a comment.