Jeppe Nejsum Madsen wrote:
Russel Winder <[email protected]> writes:

Is there a way plugins like this can be developed outside the Gradle
tree, i.e. as separate standalone entities.

Gradle will surely succeed far better if plugins were separate from the
core, there could then be a community of plugins since people could
develop them and use them without having to work with the Gradle source.

I agree completely. For know, I'm the only one able to build releases of
our sw locally since I need to use a custom gradle version. Using the
buildSrc is one possible solution, but requires manual updates

Just an idea:

Would it be possible to specify a dependency in the buildscript section
and later use it via useplugin? Ie something like

buildscript {
    repositories {
        gradlePlugins()
    }
    dependencies {
        classpath 'myniceplugin:stuff:0.7'
    }
}

usePlugin(stuff.MyPlugin)


You can already do this.

The piece that's missing from your example above, which would be good to have, is a central Gradle plugins repository. For now, the plugin author needs to publish the plugin to a repository somewhere, and advertise the details to those who want to use the plugin.


Adam

Reply via email to