Hi all! I'm working on a Kotlin compiler plugin w...
# multiplatform
s
Hi all! I'm working on a Kotlin compiler plugin where I have an issue with my KMP gradle api submodule which has multiple targets. I thought it was an issue with my machine, but now someone who wants to contribute is experiencing the same issue. When I run
assemble
, the task
compileCommonMainKotlinMetadata
fails with an error for each stdlib reference I have. I tried mutliple different things, but only two solutions work: 1. remove all targets except for one (i.e. jvm), or 2. remove the kotlin dependencies from my local m2 cache. This works once, but the next run fails again. This problem never occurs on GitHub actions. Does anyone have an idea if there is something wrongly configured?
a
Most likely youre using mavenLocal and have some maven projects. Please try avoid usong mavenLocal in your gradle builds. Gradle has good caching mechanism and use of maven local isnt needed. If you have some libraries that you publish to maven local and then depend on them, try configuring mavenLocal repository to be used against these specific dependencies only (search gradle docs on how to configure repositories and filters)
s
Removing mavenLocal indeed resolved this issue. Thanks!
kodee happy 1
🎉 1