This practice is frustrating because it bloats application jars with thing that shouldn't be there. It also is a pain because you have to be very careful with imports to make sure you aren't importing classes from test dependencies. An example is the Strings class, which is in both Guava and AssertJ. The link points at the part of the pom that should have a <scope>test</scope> added.
This practice is frustrating because it bloats application jars with thing that shouldn't be there. It also is a pain because you have to be very careful with imports to make sure you aren't importing classes from test dependencies. An example is the
Strings
class, which is in both Guava and AssertJ. The link points at the part of the pom that should have a<scope>test</scope>
added.https://github.com/doanduyhai/Achilles/blob/master/pom.xml#L447-L449