How and where to configure the classpath for a plugin


(frank waldheim) #1

say you have a custom-plugin which does xdoclet and needs some obscure classpath-entries. where and how do you configure the classpath for this plugin?


(Luke Daley) #2

The same way in which you put the plugin on the build classpath…

buildscript {
  dependencies {
    classpath «obscure classpath dependency»
  }
}

(Peter Niederwieser) #3

You can also leverage transitive dependency management and publish a plugin Jar along with a pom.xml or ivy.xml to a repository. Then clients of the plugin only need to specify a dependency on the plugin module.