Madrapps / dagger-plugin

Plugin that supports easy usage of Dagger 2 library in IntelliJ iDEA or Android Studio
Apache License 2.0
30 stars 9 forks source link

Add Kotlin 1.6 support #43

Open screloma opened 2 years ago

screloma commented 2 years ago

I found that your plugin doesn't work when i use Kotlin 1.6 in my project. It fails with a log message: "STDOUT - Dagger Plugin : java.lang.RuntimeException: java.lang.IllegalStateException: Unsupported metadata version. Check that your Kotlin version is >= 1.0 "

This is because Dagger 2.31.2 currently used in project internally depends on kotlinx-metadata-jvm:0.2.0. I thought that the best course of action might be overriding it with kotlinx-metadata-jvm:0.4.0 in project's build.gradle file, thus avoiding raising Dagger version.