platform icon indicating copy to clipboard operation
platform copied to clipboard

Automatically test that components do not have unintended dependencies

Open Legioth opened this issue 5 years ago • 1 comments

Components and add-ons are supposed to use <scope>provided</scope> for all generic Flow dependencies.

None of our modules are supposed to have non-provided dependencies for e.g. the Servlet API or any specific SLF4J implementation.

This is something that could be good to test on the platform level since it's quite easy to accidentally include something with an inappropriate scope. As an example, see https://github.com/vaadin/vaadin-custom-field-flow/pull/38.

Legioth avatar Sep 13 '19 08:09 Legioth

since flow components now are in the same repo flow-components and all pom.xml files for addons are generated by a script we can make the script force those deps as provided.

manolo avatar Mar 31 '21 07:03 manolo