square / anvil

A Kotlin compiler plugin to make dependency injection with Dagger 2 easier.
Apache License 2.0
1.31k stars 80 forks source link

Adopt new KSP moduleName API or better handle in KSP2 #939

Open ZacSweers opened 6 months ago

ZacSweers commented 6 months ago

Otherwise the current impl will fail in KSP2 with

Caused by: java.lang.NoClassDefFoundError: com/google/devtools/ksp/processing/impl/ResolverImpl
        at com.squareup.anvil.compiler.codegen.dagger.ProvidesMethodFactoryCodeGen$KspGenerator.processChecked(ProvidesMethodFactoryCodeGen.kt:118)
        at com.squareup.anvil.compiler.codegen.ksp.AnvilSymbolProcessor.process(AnvilSymbolProcessing.kt:31)