#7309 add support for building lightweight chassis #7316
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Nigel Jones [email protected]
Description
Adds support to build a lightweight chassis for gradle builds.
Build by adding
-PadminChassisOnly
, for example./gradlew -PadminChassisOnly build -x test -x javadoc
to build egeria with a cut-down admin chassis, and skipping test & javadoc.
Related Issue(s)
Fixes odpi/egeria-docs#675
Testing
Built with & without flag, and checked content of artifacts ie when set:
Release Notes & Documentation
Should be added to dojo documentation when happy (@mandy-chessell please indicate if you plan to do this)
Additional notes
This change replicates what we have with maven (though there we typically set via mvn with
-D
instead of-P
- the implementation for gradle is more aligned with the normal way of setting gradle propertiesIn maven there is a conditional build for the connector configuration factory. I've implemented this. However the gradle build doesn't currently build an uber jar for this project, so the change makes no difference..... this condition could be removed. It's only relevant when building an uber jar since the dependencies are runtime only.
For the server chassis
Please review. I can consolidate these changes with another commit
NOTE: I have not actually RUN a cut down platform.