https://kotlinlang.org logo
a

ArcticLampyrid

11/07/2020, 2:56 PM
Hi, I'm trying to modify the compiler plugin
kotlin-serialization
, but I failed to test the modified one in local. How can I use a local modified one when building?
b

Big Chungus

11/08/2020, 12:55 AM
Add mavenLocal as the top repository to pluginResolution (or something like this) in settings.gradle and repositories in build.gradle
I mean in your consumer project
a

ArcticLampyrid

11/08/2020, 2:26 AM
@Big Chungus It seems that Kotlin will force to use the same version of the
kotlin-serialization
plugin as that of compiler. Can I test my modified plugin without building the whole compiler?
b

Big Chungus

11/08/2020, 11:36 AM
And that's fine, when you publish to maven local, you override existing plugin. Provided you have maven local as your first repo in gradlefiles
a

ArcticLampyrid

05/08/2021, 10:39 AM
fixed by removing
kotlin-bom
1