Hello! IDEA don't want to include my source path: ...
# intellij
p
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
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
You can use a symbolic link instead when running in IDEA (The property
idea.active
is equals to
"true"
from Gradle.)
p
Hello, Louis! Could you give more details how to make it from gradle?
142 Views