hi i'm getting enhancement failures when using gradle + the quarkus dev plugin with kotlin. I believe this is because the enhancement plugin is not writing the enhanced classes back to ./build/classes/kotlin/main which is where the dev plugin will load classes from. I know enhancement is running because the enhanced classes appear in ./build/ebean-enhanced/main and inspecting them with javap shows the modified bytecode. However when inspecting the original classes in the normal build location they are not enhanced.
I guess I'm trying to figure out if its expected to not write back to the normal build path.
To get the dev mode to work I had to copy the classes before the task runs:
tasks.named("quarkusDev") {
val enhanced = layout.buildDirectory.dir("ebean-enhanced/main/com/my/project")
val normal = layout.buildDirectory.dir("classes/kotlin/main/com/my/project")
doFirst {
copy {
from(enhanced)
into(normal)
}
}
}
hi i'm getting enhancement failures when using gradle + the quarkus dev plugin with kotlin. I believe this is because the enhancement plugin is not writing the enhanced classes back to
./build/classes/kotlin/mainwhich is where the dev plugin will load classes from. I know enhancement is running because the enhanced classes appear in./build/ebean-enhanced/mainand inspecting them withjavapshows the modified bytecode. However when inspecting the original classes in the normal build location they are not enhanced.I guess I'm trying to figure out if its expected to not write back to the normal build path.
To get the dev mode to work I had to copy the classes before the task runs: