Questions tagged [grails-plugin]

A Grails plugin is a self-contained bundle of functionality that can be installed into a Grails application.

A Grails plugin is a self-contained bundle of functionality that can be installed into a Grails application. When a Grails plugin is installed, it can do any of the following:

  • Define additional Spring beans
  • Modify the generated web.xml file
  • Add new methods to the application's artefacts (controllers, domain classes, services, etc.)
  • Provide new tag libraries
  • Make additional resources and classes available to the application
  • Provide new Grails commands

For example, when you install the jQuery plugin

  • The jQuery JavaScript files are added to the application
  • A new Grails tag <jq:jquery> is added to the application
  • A new Grails command grails install-plugin jquery is added to the application

When you install a Grails plugin, that plugin's functionality is made available to the installing application. However, the plugin itself is not actually copied into the application, only the plugin name and version is added to the application's application.properties file. The plugin itself is downloaded to $HOME/.grails and the application loads it from there.

The structure of a Grails plugin project is identical to that of a Grails application, with the exception of a configuration file (known as a plugin descriptor) that is included in a plugin's root directory.

1510 questions
7
votes
2 answers

Grails client side validation

How do you (if you) manage client side validation with grails ? Do you use a plugin or do you mirror your constraints using a javascript framework ? Cheers
user217975
7
votes
4 answers

Is it possible to exclude grails plugin from production environment?

I would like to use certain plugin in development environment, but would like to exclude this plugin from production and from generated war. What is the easiest way to accomplish this?
Dan
  • 11,077
  • 20
  • 84
  • 119
7
votes
3 answers

Grails Release plugin is not deploying plugin on a remote maven repository

I'm having problems to deploy a plugin with the command maven-deploy on a remote repo. I installed the latest version of the Release plugin (2.0.2). I get this error: | Loading Grails 2.0.4 | Configuring classpath. | Environment set to…
Paul
  • 97
  • 1
  • 5
7
votes
1 answer

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") { …
Dónal
  • 185,044
  • 174
  • 569
  • 824
6
votes
2 answers

Grails Plugin Get Plugin's Root or Installed Directory

I'm writing a plugin and I'm trying to write a file inside of the Plugin's root or installed directory (not sure what to refer to this to). I can't seem to figure out how to get a hold of this value. Doing System.properties['base.dir'] will result…
Jarred Olson
  • 3,075
  • 1
  • 19
  • 34
6
votes
1 answer

jasper report in grails

I use jasper plugin to get report in pdf .I am trying to get report using this example(http://grails.org/plugin/jasper).To get particular id information in pdf format used below codes.
manu
  • 313
  • 5
  • 13
6
votes
1 answer

Grails Inline Plugins: Cannot Upgrade a plugin that is configured via BuildConfig.groovy

Our app is split into a main application and a few plugins. We're using inline plugins via the BuildConfig.groovy file. When it is time to WAR the whole thing up for production I'm getting the following message: You cannot upgrade a plugin that…
Gregg
  • 34,973
  • 19
  • 109
  • 214
6
votes
2 answers

How do I modify a column using Grails' database migration plugin's Groovy DSL?

Can you give me an example of a groovy changeset using the modifyDataType method? I tried this: databaseChangeLog = { changeSet(author: "user", id: "5-1") { modifyDataType(tableName: "test", columnName: "description4", newDataType:…
Hugo
  • 2,139
  • 4
  • 22
  • 30
6
votes
1 answer

Grails REST Client Plugin - Specify Header Data

Latest version of the REST Client plugin for grails: withHttp(uri: "http://foo/bar") { def bodyContent = [ apiKey: "somekey", identifier: identity.identity, activity: ac as JSON ] def json =…
Gregg
  • 34,973
  • 19
  • 109
  • 214
6
votes
1 answer

Caching data in grails

I have a site where users will first enter their search criteria. The search combines data from 2 sources, one of which is not a database. The search results are generally large enough to be paged. Since the initial query is expensive, I would like…
Tihom
  • 3,384
  • 6
  • 36
  • 47
6
votes
2 answers

How to conditionally skip the SecurityContextPersistenceFilter filter in Grails Spring Security plugin filter chain

I have a unique scenario I'm trying to resolve under the constraints of the Spring Security plugin (version 1.2.7.3 if currious). I have created a custom SSO plugin that allows login with a signed URL. The custom plugin works great, and I have added…
Scott
  • 16,711
  • 14
  • 75
  • 120
6
votes
1 answer

Gradle giving ClassNotFoundException while building Grails project

I am trying to use the gradle-grails-plugin to build an existing (small) Grails project. Should this work? What is the relationship between the dependencies in build.gradle and the ones specified in buildConfig.groovy? In any event, I have two…
JoeG
  • 7,191
  • 10
  • 60
  • 105
6
votes
2 answers

How to use table component added to JasperReports 3.7.2 with grails jasper plugins?

I would like to use new table component added to JasperReports 3.7.2 with grails jasper plugins. I find this new component useful to generate tables. I have define Table dataset 1, and some fields (ex : $F{name}), problem, all my fields values are…
Fabien Barbier
  • 1,514
  • 4
  • 28
  • 41
6
votes
1 answer

spring security acl doesn't compare bitwise permissions

We've encountered an unexpected lack of bitwise permission checking in spring security. We'd like to confirm if this is the expected behaviour and if so, what the history is and/or rationale for this. We're using the grails plugin…
6
votes
1 answer

Grails-ElasticSearch Plugin: Conditional Indexing of domain instances

I am using Grails-ElasticSearch Plugin(0.0.2.5). I want to add a constraint to my domain instances before it is indexed in ElasticSearch. Example:- I have a domain class A with a field 'status', i want to add an abstraction between Database and…