polyforest / acornui-gradle

A bundle of Gradle plugins that helps build Acorn UI projects with ease.
Apache License 2.0
0 stars 0 forks source link

IDE complains about having duplicate content roots for basic assets/starter resources directory #77

Open fuzzyweapon opened 5 years ago

fuzzyweapon commented 5 years ago

image.png

While it is expected to have duplicate content roots registered in the import process, it's not expected that they both show the app project as their base path.


We add the basic starter assets directory as a resource directory for JS and JVM source sets. Therefore it gets registered twice in the IDE upon import. Gradle is smart enough to consolidate behind the scenes and so is the IDE, but the IDE lets you know about it.

If my memory serves me, we took this approach because that's how Kotlin MPP handles propagating common resources to its platforms, but this might have changed or might not be true.

Things to try:

Things to do (if applicable):