cleaned up gradle and mvn dependencies and ensured build now fails if dependencies are incorrect