Use shadow plugin to build jars with gradle. Implement codenarc and fix violations.