Burning Image 0.3 released

New version of Grails plugin for image manipulation released. Current version allows to:

  • scale image with approximate width and height
  • scale image with accurate width and height
  • add image watermark
  • crop image
  • write text on image
  • mark domain class as image container by using @FileImageContainer annotation
  • save image binded to domain class by using ImageUpladService
  • validate uploaded image

To read more go to project home page.

Grails 1.1.1 and plugin release problems

Creating plug-in in Grails is easy, but it releasing is not. When I was trying to release my Burning Image plug-in I was hit with two problems. First was "svn: Authentication required" :

Importing project to https://svn.codehaus.org/grails-plugins/grails-burning-image. Please wait...
org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for ' grails-plugins primary Subversion repository

To work around this problem just add file setting.groovy into your ~/.grails/ directory and add this lines:

grails.plugin.repos.discovery.grailsplugins="https://svn.codehaus.org:443/grails-plugins"
grails.plugin.repos.distribution.grailsplugins="https://svn.codehaus.org:443/grails-plugins"

Now you should be asked about yours credentials after executing:

grails release-plugin "-repository=grailsplugins"

Second problem was error:

Error executing script ReleasePlugin: groovy.lang.MissingMethodException: No signature of method: _PluginDependencies_groovy$_run_closure2.doCall() is applicabl
e for argument types: (java.lang.Boolean, java.lang.String) values: [true, distribution]
gant.TargetExecutionException: groovy.lang.MissingMethodException: No signature of method: _PluginDependencies_groovy$_run_closure2.doCall() is applicable for a
rgument types: (java.lang.Boolean, java.lang.String) values: [true, distribution]
        at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:331)
        at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
        at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
        at gant.Gant.withBuildListeners(Gant.groovy:344)
        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
        at gant.Gant.dispatch(Gant.groovy:334)
        at gant.Gant.this$2$dispatch(Gant.groovy)
        at gant.Gant.invokeMethod(Gant.groovy)
        at gant.Gant.processTargets(Gant.groovy:495)
        at gant.Gant.processTargets(Gant.groovy:480)
Caused by: groovy.lang.MissingMethodException: No signature of method: _PluginDependencies_groovy$_run_closure2.doCall() is applicable for argument types: (java
.lang.Boolean, java.lang.String) values: [true, distribution]
        at ReleasePlugin$_run_closure3.doCall(ReleasePlugin.groovy:75)
        at ReleasePlugin$_run_closure1.doCall(ReleasePlugin.groovy:42)
        at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
        ... 10 more

It occurs when I try to execute release plug-in command like this:

grails release-plugin -repository=grailsplugins

Just add " like previously and all should go smoothly.

Burning Image Grails plugin

Today I ended my work over my first Grails plug-in: Burning Image. This simple plug-in for images manipulation provides two types of image scaling, and allows to watermark image. In future i want to add crop option and maybe rounding image corner. If you looking for some more informations or you want to try it you could fine it Google code repository.

Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds. Valid XHTML and CSS.