Releases: revolut-engineering/jooq-plugin
Build cache support
- makes the plugin task cacheable, so it can be used with Gradle's build cache.
- fix serialization of
generatorCustomizer
that was failing on occasions and required.gradle
folder removal
Build cache support
- makes the plugin task cacheable, so it can be used with Gradle's build cache.
- fix serialization of
generatorCustomizer
that was failing on occasions and required.gradle
folder removal
Fixes for parallel builds and Docker credential helpers support
This release contains the following changes:
- fixed for parallel execution in multi-module projects. Previous releases would fail when the plugin was applied in multiple modules which were built in parallel due to
SchemaVersionProvider
reusing the schema name set by other executions - fixed generation failure when flyway table name was changed using
flyway.table
property. The plugin now will be able to detect the changed name and use it inSchemaVersionProvider
- support for Docker credential helpers. The plugin will now be able to detect the appropriate authentication method for a particular repository, so pulling images from eg.
gcloud
Container Registry shouldn't be a problem anymore
Fixes for parallel builds and Docker credential helpers support
This release contains the following changes:
- fixed for parallel execution in multi-module projects. Previous releases would fail when the plugin was applied in multiple modules which were built in parallel due to
SchemaVersionProvider
reusing the schema name set by other executions - fixed generation failure when flyway table name was changed using
flyway.table
property. The plugin now will be able to detect the changed name and use it inSchemaVersionProvider
- support for Docker credential helpers. The plugin will now be able to detect the appropriate authentication method for a particular repository, so pulling images from eg.
gcloud
Container Registry shouldn't be a problem anymore
Better support for non Java projects
Previous versions of the plugin were configured for Java project, because of that projects not using Java required additional configuration for the build to pick up generated jOOQ classes. This release fixes this problem and no additional configuration should be required.
This release also brings small improvement for multi-module projects. Previously the docker container name was static and thus in the multi-module project with parallel builds there could be a clash of the names which will lead to generation failure if a user didn't specify a unique container name per module. This release adds a project name to the container name, so as long as your module names are unique you no longer have to worry about the container names.
Better support for non Java projects
Previous versions of the plugin were configured for Java project, because of that projects not using Java required additional configuration for the build to pick up generated jOOQ classes. This release fixes this problem and no additional configuration should be required.
This release also brings small improvement for multi-module projects. Previously the docker container name was static and thus in the multi-module project with parallel builds there could be a clash of the names which will lead to generation failure if a user didn't specify a unique container name per module. This release adds a project name to the container name, so as long as your module names are unique you no longer have to worry about the container names.
Remote Docker support
Plugin can now connect to remote docker daemon 🐳
See the Remote docker setup section of the readme for more details
Remote Docker support
Plugin can now connect to remote docker daemon 🐳
See the Remote docker setup section of the readme for more details
Groovy DSL support for generator customizer
generatorCustomizer
task property is now Groovy friendly!
What previously had to be written as:now can be done in the closure directly in the task:tasks { generateJooqClasses(new MyCustomizer()) } class MyCustomizer implements GeneratorCustomizer { @Override void execute(final Generator generator) { generator.database.withForcedTypes(...) } }
tasks { generateJooqClasses { it.database.withForcedTypes(...) } }
- New
excludeFlywayTable
task property to exclude theflyway_schema_history
from generated classes:tasks { generateJooqClasses { excludeFlywayTable = true } }
Groovy DSL support for generator customizer
generatorCustomizer
task property is now Groovy friendly!
What previously had to be written as:now can be done in the closure directly in the task:tasks { generateJooqClasses(new MyCustomizer()) } class MyCustomizer implements GeneratorCustomizer { @Override void execute(final Generator generator) { generator.database.withForcedTypes(...) } }
tasks { generateJooqClasses { it.database.withForcedTypes(...) } }
- New
excludeFlywayTable
task property to exclude theflyway_schema_history
from generated classes:tasks { generateJooqClasses { excludeFlywayTable = true } }