https://kotlinlang.org logo
Title
h

henrik

04/25/2019, 1:32 PM
Does anyone know why I'm getting an UnknownPluginException when trying to use a custom-built gradle kotlin compiler plugin? Here are the details: https://stackoverflow.com/questions/55850500/why-do-i-get-unknownpluginexception-when-trying-to-use-a-custom-kotlin-complier
s

snowe

04/25/2019, 8:44 PM
responded on stack overflow, but where do you have it deployed? did you deploy to
mavenLocal()
? did you deploy at all? have you made sure that you set up to search mavenLocal for plugins?
h

henrik

04/26/2019, 4:59 AM
I deployed it to mavenLocal. I know Gradle finds it, because it fails earlier if I insert a typo in the classpath dependency.
@snowe I have added an example project now, so it's really easy to reproduce. Feel like taking a look? 🙂
s

snowe

04/26/2019, 3:07 PM
let me look.
you didn't update the plugin repositories.
also, you will need to comment out your plugin in
example
until you publish the
plugin
module to
mavenLocal
. then you can uncomment it.
you still have test failures, but you are at least past the problem you were having.
sorry it took so long. I was helping other coworkers.
h

henrik

05/02/2019, 10:45 AM
Hehe, no problem 🙂
I did uncomment (had to do the same with the
buildscript
version)
Anyway, I solved it better by using
GradleRunner
🙂