Additional dependencies for PMD task

I wrote a custom MD rule in Java that I’ve packaged into a JAR that’s in our corporate repo. I’d like to use that rule in another project. How do I configure Gradle’s PMD plugin to have a dependency on that artifact? I’ve tried everything I can think of - on the buildscript section, the normal dependencies section, the “pmd” configuration in the depedencies section. No matter what I do I get “Couldn’t find the class …” errors