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
6
votes
2 answers

How to list all older versions of Grails plugins?

The Grails Plugins site only seems to list the latest versions of all the Grails plugins. But what if I wanted to see a list of other available (older) versions for each plugin? Is there a Grails SDK command/target I can issue to see old plugins? I…
DirtyMikeAndTheBoys
  • 1,077
  • 3
  • 15
  • 29
6
votes
1 answer

Grails: is it possible to exclude a plugin dependency of another plugin?

I have a grails 2.2.2 app, and have decided to use cache-ehcache plugin. The problem is that this plugin depends on the cache plugin with version 1.0.0 and my application has the cache plugin version 1.0.1 (i think it is the default for grails…
Pma
  • 1,063
  • 1
  • 16
  • 30
6
votes
4 answers

Grails ehcache plugin - Another unnamed CacheManager already exists in the same VM

I run my Grails application using ehcache for my 2nd level Cache and it works. I installed the ehcache plugin + cache plugin and then it doesn't. I tried almost all solutions from the internet and found no solution I keep getting Another unnamed…
Gil
  • 640
  • 8
  • 14
6
votes
2 answers

grails service with different scopes for persistence

I have one domain, in that domain more than 25 members are there. This members value will come from one form. But it feels bad to fill those too much fields. So I thought dividing input form into different stages. I've made a class called…
sanghavi7
  • 758
  • 1
  • 15
  • 38
6
votes
4 answers

Exclude plugin for specific environment

I'm using grails 2.1. I need to exclude a plugin when building for production. This post mentions adding scopes to the plugins. I believe this requires editing indivudual plugin descriptors? I would like to define plugins to exclude in one…
Thomas Buckley
  • 5,836
  • 19
  • 62
  • 110
6
votes
3 answers

Disable Grails plugin

In my Grails app, I want to prevent the Searchable plugin from loading when running my unit tests. I tried doing this using the following code in the Bootstrap class def grailsApplication def init = {servletContext -> def currentEnv =…
Dónal
  • 185,044
  • 174
  • 569
  • 824
5
votes
2 answers

Grails/Gradle Plugin for Grails 2.0

I'm trying to use the grails-gradle plugin with grails version 2.0. Here is my build script: buildscript { repositories { mavenRepo url: "http://repo.grails.org/grails/core/" } dependencies { classpath…
jmq
  • 10,110
  • 16
  • 58
  • 71
5
votes
2 answers

Grails Redirect Post-Logout Using spring-security-core-3.0.6+

In spring security version 3.0.6, which fixed a CRLF logout exploit (https://jira.springsource.org/browse/SEC-1790) they disabled the use of the 'spring-security-redirect' parameter. Default support for the redirect parameter in logout URLs has…
tmarthal
  • 1,498
  • 19
  • 28
5
votes
2 answers

What widget constraints are valid for Grails domain classes?

Can you tell me the list of valid values for the widget constraint below (some-widget), e.g.: static constraints = { someField(widget: 'some-widget') } The documentation seems to be missing. Related, do you know of any plugins that can work…
Ray
  • 5,885
  • 16
  • 61
  • 97
5
votes
2 answers

grails override redirect controller method

I am trying to override the default controller redirect method and cannot seem to get the following bit of code to work. I have created a plugin and I'm trying to use the "doWithDynamicMethods" to replace the redirect. def doWithDynamicMethods =…
ibuck
  • 495
  • 1
  • 5
  • 16
5
votes
2 answers

Upgrading a Grails app from 1.3.7 to Java 8 compatibility version

I am looking to upgrade Grails from 1.3.7. Which version of grails is compatible with Java8? What versions of hibernate and tomcat plugins to be used?
T. Srik
  • 59
  • 2
5
votes
1 answer

How do I get the Grails Export plugin to work correctly with criteria queries?

I'm trying to get a Criteria query to be exported to CSV, Excel, what have you. The issue I'm running into is that the categories code runs cleanly (as in, doesn't throw any errors), but it doesn't generate any data. I know for a fact that data is…
Pat
  • 2,228
  • 3
  • 24
  • 33
5
votes
0 answers

Grails 3 Spring Security No Hibernate Session

I am migrating a grails 2.4.5 application to grails 3.1.11. Application has a custom authprovider which allows users to authenticate from db or a ldap server. If a user is ldap user, login credentials are verified from ldap, if not from db. Roles…
5
votes
1 answer

Grails rendering plugins

I'm using grails rendering to render table into the pdf. when column data is more that data is not getting break(i.e it should get fixed into that column only) I have used "word-break: break-all" property but it is not working at all. E.g
Dipak Thoke
  • 1,963
  • 11
  • 18
5
votes
1 answer

How to use Grails with BIRT report and show BIRT web viewer

I installed the birt-report plugin on a Grails web application project but I cannot understand to use it. I have 2 use cases: Generate BIRT web viewer and show on GSP Page (Show chart report) Generate BIRT report to some other file format (PDF,…
MewZ
  • 121
  • 2
  • 9