Library Components¶
Library component is a special type of component. Its main purpose to provide a way to use common code across multiple components within a solution. This can be used to reduce code redundancies within a solution. This component should contain libraries of commonly used generic models. It is not a runnable entity.
It is different from the other components in following way
Library component can not be built individually A library component is always built along with the component that uses this component.
Library component can not be deployed. It is not an individually running entity. It can not be executed on its own.
How to create a library component
While creating solution, add a component and set its type to library and flavor to any supported type(python for now).
How to use a library component
Library component is used at the time of build. If any component wants to use any library component, then user must select the library component in “xpresso_dependencies” when building the solution.
During the build process, xpresso build manager(Jenkins) first builds the dependent xpresso libraries (in this case library_component) and then builds the main component. It copies the required artifacts from the library_component build and copies them into the relevant folders so that main component can be built.
Supported components flavor
Xpresso supports following flavor of library components