Skip to content

enhancement failures when using quarkusDev #45

Description

@gdoenlen

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)
        }
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions