What are some best-practices for a Spring-Boot project, which creates two artifacts (one for cloud and one for on-premise deployment), where just some Spring Beans are implemented differently (e.g. for login, etc.) and the artifacts should not contain code from the other deployment? What are best-practices to unit test and integration test those instances without long build time due to executing tests multiple times?
