I'm trying to migrate Micronaut to use use Kotlin 2 and KSP2.
I see the files are generated but classes cannot be loaded by Class.forName.
Do you have any idea what can be wrong?
Reading the class as file getClass().getClassLoader().getResource(className.replace('.', '/').concat(".class")) doesn't work. It looks like classes are not included on the classpath but the resources are added.
I'm trying to migrate Micronaut to use use Kotlin 2 and KSP2.
I see the files are generated but classes cannot be loaded by
Class.forName.Do you have any idea what can be wrong?
Reading the class as file
getClass().getClassLoader().getResource(className.replace('.', '/').concat(".class"))doesn't work. It looks like classes are not included on the classpath but the resources are added.