Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassNotFoundException: org.jooq.codegen.KotlinGenerator #16

Open
patryk-marcin-zielinski opened this issue Jul 21, 2021 · 1 comment
Open

Comments

@patryk-marcin-zielinski

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant