You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Newcomers to native-packager sometimes start a the wrong place, e.g. by googling for a certain solution and copy pasting code from a format documentation page, instead of reading the Getting Started Guide or the readme.md.
Solution
To help the users in different situations we should add a validatePackageConfiguration task that can be implemented by formats and archetypes and provide helpful warnings / errors.
The validation should run by default and can be turned off by overriding the setting.
Examples
If the mappings in Universal is empty, fail validation
If the JavaServerArchetype is enabled and docker is used, emit a warning
If multiple main classes have the same name, fail validation
This is an initial draft to provide helpful feedback to users
during their configuration phase with sbt-native-packager.
The intention is to give a short explanation why a warning or
error is triggerd and a detailed description how to fix the issue.
This is an initial draft to provide helpful feedback to users
during their configuration phase with sbt-native-packager.
The intention is to give a short explanation why a warning or
error is triggerd and a detailed description how to fix the issue.
Newcomers to native-packager sometimes start a the wrong place, e.g. by googling for a certain solution and copy pasting code from a format documentation page, instead of reading the Getting Started Guide or the readme.md.
Solution
To help the users in different situations we should add a
validatePackageConfiguration
task that can be implemented by formats and archetypes and provide helpful warnings / errors.The validation should run by default and can be turned off by overriding the setting.
Examples
mappings in Universal
is empty, fail validationJavaServerArchetype
is enabled anddocker
is used, emit a warningRelated issues:
The text was updated successfully, but these errors were encountered: