Add dependency management for the java module