Add dependencies to java implementation