Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command line or plugin parameters should take precedence over annotation providing the same information #46

Open
kdubb opened this issue Nov 4, 2022 · 1 comment

Comments

@kdubb
Copy link
Contributor

kdubb commented Nov 4, 2022

For values that can be specified in both annotations and via command line or plugin provided parameters the CLI or plugin value should take precedence.

Example:
The annotations sunday.kotlinPackage and the command line parameters -pkg provide the same value. In this case the default package should use the value of the -pkg parameter.

@kdubb
Copy link
Contributor Author

kdubb commented Dec 20, 2022

Design - Kotlin Package Options

  • Keep -pkg, -model-pkg, and -service-pkg as the default packages, these options will not override annotations.
  • Add -unit-pkg with the format <unit-path>:<pkg-name> to allow overriding a package annotation for a specific unit.
    • Support equivalent options for model (-unit-model-pkg) and service (-unit-service-pkg) packages.
    • unit-path should support providing absolute paths as well as paths relative to the current working directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant