jooq-plugin icon indicating copy to clipboard operation
jooq-plugin copied to clipboard

ClassNotFoundException: org.jooq.codegen.KotlinGenerator

Open patryk-marcin-zielinski opened this issue 3 years ago • 1 comments

Hello,

Probably it is problem of my configuration, but I can't change generator to Kotlin.

Caused by: java.lang.ClassNotFoundException: org.jooq.codegen.KotlinGenerator
        at org.jooq.codegen.GenerationTool.loadClass(GenerationTool.java:926)
        at org.jooq.codegen.GenerationTool.run0(GenerationTool.java:377)
        at org.jooq.codegen.GenerationTool.run(GenerationTool.java:222)
        at com.revolut.jooq.GenerateJooqClassesTask.generateJooqClasses(GenerateJooqClassesTask.kt:186)

Gradle configuration

tasks {
    generateJooqClasses {
        basePackageName = "com.test.infrastructure.database.jooq"
        inputDirectory.setFrom(project.files("src/main/resources/db/migration"))
        outputDirectory.set(project.layout.buildDirectory.dir("generated-jooq"))
        excludeFlywayTable = true
        customizeGenerator {
            name = "org.jooq.codegen.KotlinGenerator"
        }
    }
}

Any idea what could be the problem?

Regards Patryk

patryk-marcin-zielinski avatar Jul 21 '21 17:07 patryk-marcin-zielinski

Ok I found problem, it seems like 0.3.5 version doesn't contains "org.jooq.codegen.KotlinGenerator". Can you guys release latest version?

patryk-marcin-zielinski avatar Jul 23 '21 15:07 patryk-marcin-zielinski