Bug around multiple contentroots for gradle

已回答

Hi,

 

I have a gradle project, that has a sourceSet which is used by 2 modules. When I try to add it to IntelliJ I get the errors "Duplicate root detected, removing from module 2". 

If I run it with gradle though everything is fine, but building it using gradle in intelliJ I always get said error. This confuses a lot as I was expecting when choosing gradle as building agent it should behave exactly as a `./gradlew build` on the commandline.

When I searched that problem online I found this bug report which indicates that this bug was introduces in 2019.1 and has not been fixed since and even been shelved at the moment. 

Is there any update on this?  Will there be a fix anytime soon?

0

>bug was introduces in 2019.1 and has not been fixed since and even been shelved at the moment. 

Unfortunately this bug has always been there - this is a limitation of IntelliJ IDEA project model. Since 2019.1 version IDE just does not allow to save such a configuration (it has never effectively worked actually). We have been working on a new project model for some time now and already enabled it for simple projects in 2021 version. At time time it is still hard to give exact estimations but I hope we will be able to return to this task in near IDE major versions.

0

Andrey Dernov many thanks for your quick answer. What do you mean with "simple projects"?I do completely understand that you cannot give an exact estimate. Does"near IDE major versions" mean this year?

0

Andrey Dernov is there an update for the new model?And hat do you mean by "simple projects"?

0

There are no new updates. Please follow the issue in https://youtrack.jetbrains.com/issue/IDEA-210311 If there are news they appear there.

Simple projects - these are simple Java modules without Maven or Gradle.

0

请先登录再写评论。