Added pmd to gradle build. -x pmdMain to build without running pmd.