How to add custom Gradle configuration to classpath in IDEA 13

Hi

I'm trying to switch a Gradle build from Eclipse to IDEA 13.0.1 Community Edition. Apparantly, the Gradle Idea plugin should not be used anymore, however Idea will not recognize my custom "provided" configuration:

configurations{      provided { transitive = true } } sourceSets {      // make the custom dependencies visible for other tasks and plugins      main.compileClasspath += configurations.provided      test.compileClasspath += configurations.provided }


Any ideas how I can tell IDEA to add those provided libraries to the classpath automatically?

1 comment
Comment actions Permalink

Hi Martin,

try to add the following code in your gradle script:

apply plugin: 'idea'
0

Please sign in to leave a comment.