Hello!
IDEA don't want to include my source path: duplicate content root detected.
My project is a gradle project.
In build.gradle.kts I add one more source path:
sourceSets { getByName("main").java.srcDirs("../buildSrc/src/main/java")
}
I use sames sources from build script directory for build script and for project.
When I build from command line (gradle build) it is successfully built.
But IDEA don't want to include this source path, so when i build from IDEA (Build/Build Project) - it shows errors of Unresolved References.
Question: how can I force IDEA to include same source path to different modules? And why it is not allowed now?
m
Mike
07/18/2019, 11:27 AM
This seems like an Intellij support or Gradle support question. This Slack group is for Kotlin, and this channel, is intended for issues/questions around the Kotlin plugin for Intellij.
Please reach out on Intellij or Gradle support channels for assistance with this.
l
louiscad
07/21/2019, 4:18 PM
You can use a symbolic link instead when running in IDEA (The property
idea.active
is equals to
"true"
from Gradle.)
p
PHondogo
07/21/2019, 5:21 PM
Hello, Louis! Could you give more details how to make it from gradle?