Source resources tagged as test by intellij

i am using this sourceset config for my plugin

sourceSets {
        configCompile {
          java {
            srcDirs = []
          }
          groovy {
            srcDirs = []
          }
          resources {
            srcDirs = ["src/main/configurations"]
          }
        }

        test {
          java {
            srcDirs = []
          }
          groovy {
            srcDirs = []
          }
          resources {
            srcDirs = ["src/test/configurations"]
          }
        }
      }

Everything works fine, it shows up in my insite plugins as everything is kosher, all looks good until i import it into intellij. for some reason intellij seems convinced that “src/main/configurations” is a test resources folder. why would that be?

im using 4.1

Same issue here:
Gradle 3.3
IntelliJ 2017.2.4

I noticed that if you remove java srcDirs declaration then src/main/configurations is marked as resources root, although then IntelliJ marks src/configCompile as source folder even though that folder does not exist.

This issue appeared with IntelliJ 2017.2.3, previous version works fine.

Edit: opened ticket in jetbrains issue tracker