Hi there, I am looking for a way to package a cust...
# plugin-development
l
Hi there, I am looking for a way to package a custom plugin with our inhouse gradle distribution, effectively to work like a built-in plugin without imposing on plugin repositories etc. My first attempts to just bundle the plugin.jar in the
lib/plugins
directory of the distribution were unsuccessful. Is there a way to do this?
r
I'd put in in an extra folder with all dependencies within the distribution and then you would need also an init script in init.d that takes care of autoapplying the plugin or at least put it on the classpath of your build
l
Thanks for the hint with the classpath, however it appears way to complicated to set this up. Being a custom plugin (as opposed to just a random jar) one also need to configure a plugin repository, which can't be a flatDir repo. So I'd need to publish the plugin as regular Maven artifact(s) to a local directory, package that with the distribution, setup a plugin repository pointing to the packaged directory in an init-script and configure plugin resolution to fix the plugin version to the packaged one. So effectively this provides no benefit at all over just publishing the custom plugin to a regular maven repo and set that up as plugin repository.