Update project dependencies

Update project dependencies in pom.xml and Gemfile