I have a configuration in one subproject (A) that creates a test artifact:
configurations { testArtifacts.extendsFrom testRuntime } task testJar(type: Jar) { classifier "test" from sourceSets.test.output } artifacts { testArtifacts testJar }
and in another subproject (B) I want to use this artifact:
compile project (path: ":a-sub-project", configuration: 'testArtifacts')
this works fine with gradle, but when I import a project into an idea (via built-in support), the idea cannot see the classes from this artifact. He can see classes from the main artifact (A), but not from the test one.
Any ideas?
PS. Idea 14.1.4, gradle 2.3.
source share