Closed thorntonrp closed 3 years ago
I faced the same error - would be great for PR #213 being merged and this issue fixed.
BTW, I think this issue shouldn't have happened in the first place - (polyglot-kotlin) extension's classpath and project's classpath should be isolated from each other, otherwise this issue might occur again even after the fix is merged.
Don't know whether it's easy to fix on Maven plugins / extensions level (maybe it's a simple configuration setting change?), but I think what can definitely help is to use Kotlin dependencies as shaded dependencies by the polyglot-kotlin extension.
Fix with merged PR
I created PR #213 to resolve an issue when using the polyglot-kotlin extension in combination with version 1.4.0 of the kotlin maven compiler plugin. This pull request upgrades the polyglot-kotlin extension to use Kotlin 1.4.0 which was released on August 17. When projects using version 1.4.0 of the kotlin maven compiler plugin attempt to compile their kotlin source code, the compiler plugin gets the following exception:
While debugging, I determined that the above compiler exception only happens with projects using both the polyglot-kotlin extension and Kotlin 1.4.0. Upgrading the polyglot-kotlin extension to use Kotlin 1.4.0 fixes this issue.