Add PMD static analysis to build

-Runs with gradle task `check`