publishing Grails plugins
Asked Answered
C

1

7

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.

Campanula answered 5/4, 2012 at 17:3 Comment(0)
L
16

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.

Laryngeal answered 5/4, 2012 at 17:24 Comment(1)
confirmed to be the correct solution for release plugin version 2+Eyebolt

© 2022 - 2024 — McMap. All rights reserved.