Add java dependency for worker