> Task :main-presenter:processDceJsKotlinJs FAILED
error: duplicate target file will be created for '/home/niqo/workspace/source/social-cats/auth/client/build/libs/auth-client-js-0.1.0-SNAPSHOT.jar!social-cats-playground-client.js' and '/home/niqo/workspace/source/social-cats/session/client/build/libs/session-js-0.1.0-SNAPSHOT.jar!social-cats-playground-client.js'
Any tips on how to understand this issue and fix it ?
i
Ilya Goncharov [JB]
03/10/2020, 3:14 PM
The main problem in current DCE is that it produces js files with original names, but it puts it in flat list on one directory. So if you have similar file names as input for dce, it produces errors
You can disable DCE, and use
Honestly, this issue will be more relevant https://youtrack.jetbrains.com/issue/KT-35855
Although your issue is about one of possible solution of real problem, 35855 is about real problem at all
👍 1
d
Darren Bell
03/20/2020, 6:25 PM
@Ilya Goncharov [JB] I have tried to remove the task as suggested. However I am using Gradle 6.2.2 and get the following error:
Removing a task dependency from a task instance is not supported.
Is there an alternative approach? I'm really stuck at the moment.