revolut-engineering / jooq-plugin

Plugin for generating jOOQ classes using dockerized databases
Apache License 2.0
72 stars 29 forks source link

ClassNotFoundException: org.jooq.codegen.KotlinGenerator #16

Open patryk-marcin-zielinski opened 3 years ago

patryk-marcin-zielinski commented 3 years ago

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 commented 3 years ago

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