Skip to content

Commit

Permalink
Optimize jOOQ generation
Browse files Browse the repository at this point in the history
  • Loading branch information
nsychev committed Nov 23, 2024
1 parent ae9ddf5 commit f7a1617
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import nu.studer.gradle.jooq.JooqGenerate
import org.jooq.meta.jaxb.Logging

plugins {
Expand Down Expand Up @@ -50,7 +51,6 @@ jooq {

configurations {
create("main") {
generateSchemaSourceOnCompilation
generateSchemaSourceOnCompilation = true
jooqConfiguration.apply {
logging = Logging.WARN
Expand Down Expand Up @@ -83,13 +83,17 @@ jooq {
}

tasks {
named<JooqGenerate>("generateJooq") {
inputs.file("src/main/resources/schema.sql")
allInputsDeclared = true
}

named<Test>("test") {
useJUnitPlatform()
}

shadowJar {
mergeServiceFiles()

archiveClassifier = null
}

Expand Down

0 comments on commit f7a1617

Please sign in to comment.