I have packages like this:
com.example.pure
com.example.pure.internal
com.example.other
I want to make sure that the classes in the package com.example.puredo not have dependencies on the classes in the packages com.example.pure.internalor com.example.other.
Obviously, I can view each file manually and track the import, but I would like to automate it. I could write code for this, but it looks like it could be something else that someone else has decided.
I use Eclipse, so the Eclipse plugin that I could configure to force dependencies would be absolutely perfect, but the command line utility or the Gradle plugin would be nice too.
source
share