diff --git a/build.gradle.kts b/build.gradle.kts index 1692bc1..64c4c31 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -213,35 +213,8 @@ jooq { } } -tasks.withType().configureEach { // Declare Flyway migration scripts as inputs - inputs.files( - fileTree("src/main/resources/db/migration"), - fileTree("src/main/java/${mainPackage}/db/flyway/migration") - ).withPropertyName("flyway-migration-files").withPathSensitivity(PathSensitivity.RELATIVE) - - outputs.files( - fileTree("${project.layout.buildDirectory.get()}/generated/flyway"), - ).withPropertyName("flyway-files") -} - tasks.withType().configureEach { dependsOn.add(tasks.flywayMigrate) // Ensure database schema has been prepared by Flyway before generating the jOOQ sources - - // Declare Flyway migration scripts as inputs on the jOOQ task - inputs.files( - fileTree("src/main/resources/db/migration"), - fileTree("src/main/java/${mainPackage}/db/flyway/migration") - ).withPropertyName("flyway-migration-files").withPathSensitivity(PathSensitivity.RELATIVE) - - // Declare outputs - val dir = layout.buildDirectory.dir("generated-src/jooq").get() - outputs.dir(dir).withPropertyName("jooq-generated-sources") - sourceSets { - get("main").java.srcDir(dir) - } - - // Enable build caching - outputs.cacheIf { true } } // Apply custom version arg