Skip to content

Groovy DSL support for generator customizer

Compare
Choose a tag to compare
@adrianskrobaczrevolut adrianskrobaczrevolut released this 12 Jul 14:45
· 69 commits to master since this release
  1. generatorCustomizer task property is now Groovy friendly!
    What previously had to be written as:
    tasks {
        generateJooqClasses(new MyCustomizer())
    }
    
    class MyCustomizer implements GeneratorCustomizer {
    
        @Override
        void execute(final Generator generator) {
            generator.database.withForcedTypes(...)
        }
    }
    now can be done in the closure directly in the task:
    tasks {
        generateJooqClasses {
            it.database.withForcedTypes(...)
        }
    }
  2. New excludeFlywayTable task property to exclude the flyway_schema_history from generated classes:
    tasks {
        generateJooqClasses {
            excludeFlywayTable = true
        }
    }