How can I restore source/resource folder icons with a custom Gradle layout?

Answered

I'm setting up a Gradle project using the following configuration to adjust my project layout:

sourceSets {
    main.groovy.srcDirs = ['src']
    main.resources.srcDirs('conf', 'resources')
    test.groovy.srcDirs = ['test']
}

 However, the directories in the project panel look like this: 

Instead of this:

Is there anything I can do to get the correct icons back?

Thanks,

Kevin

0
1 comment
This is expected behavior. When IntelliJ IDEA registers a folder as a source root (whether through Gradle, Maven, or a manual project structure setting), it replaces the plain folder icon with a type-specific icon: blue for source roots, green for test roots, and so on. There is no setting to revert to a plain folder icon while the folder is still marked as a source root.

If you'd like this to be an option, you can file a feature request on our issue tracker at https://youtrack.jetbrains.com in the IntelliJ Platform project.
0

Please sign in to leave a comment.