-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for setting target source set (#214)
Introduces support for setting target source set for each `GenerateJooqClassesTask` instance. Source sets are configured right after the plugin is applied, but before the build script (project) is evaluated, so source set configuration happens before any values are set in the buildscript. This means a project extension can't be used to configure the source set name for the plugin to generate sources for (the source set will be configured before `targetSourceSet` value is set). Therefore I took a different approach here: we configure all source sets to include `GenerateJooqClassesTask` tasks output where `targetSourceSet` value of the task matches the source set name. This way it is possible to avoid using something like `project.afterEvaluate` to configure source sets and configuration still happens lazily.
- Loading branch information
Showing
3 changed files
with
79 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters