Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

publishing Grails plugins

I'm trying to follow the new process for publishing Grails plugins. I've installed the latest version of the release plugin by adding the following to BuildConfig.groovy

plugins {
    build(":tomcat:$grailsVersion", ":release:1.0.1") {
        export = false
    }
}

But when I try and execute the publish-plugin script, it tells me no such command exists:

c:\workspace\grails-flash-helper>grails publish-plugin
| Script 'PublishPlugin' not found, did you mean:
   1) ListPlugins_
   2) ListPluginUpdates
   3) PluginInfo_
   4) InstallPlugin
   5) UninstallPlugin

The source code of the plugin is here, in case anyone wants to take a look.

like image 925
Dónal Avatar asked Apr 05 '12 17:04

Dónal


1 Answers

That simply means the plugin hasn't been installed yet. Run grails compile or grails refresh-dependencies first.

BTW, to follow the new mechanism for publishing plugins, you need to use version 2.0.0.BUILD-SNAPSHOT (or 2.0.0 when that's released) of the Release plugin. Version 1.0.1 won't work.

like image 111
Peter Ledbrook Avatar answered Sep 30 '22 23:09

Peter Ledbrook