Static dependency resolver for java modules.