How can I exclude Scala plugin from compiling a particular gradle module in a multi-project build?
I have a multi-project gradle project that loads into Intellij.
When we run this in Linux it works, but in Windows it fails due to this error:
Error:scalac: Output path C:\TestProject\out\production\Connectors-plugins-sharepoint is shared between: Module 'Connectors-plugins-sharepoint' production, Module 'connectors-plugins-sharepoint' production
Output path C:\TestProject\out\production\Connectors is shared between: Module 'Connectors' production, Module 'connectors' production
Output path C:\TestProject\out\production\Connectors-plugins is shared between: Module 'Connectors-plugins' production, Module 'connectors-plugins' production
Please configure separate output paths to proceed with the compilation.
TIP: you can use Project Artifacts to combine compiled classes if needed.
This is because there are projects with the same name but with different case. Works on Linux but does *not* work on Windows.
First of all, is this a bug I should report?
Second of all: There is no scala in these sub projects that it is complaining about. Instead of handling this error, I'd prefer to just tell Scala "leave these modules alone." Is that possible?
Please sign in to leave a comment.