Questions tagged [grails-3.1]

Version 3.1 of the grails Open Source web application framework that uses the Spring, Hibernate, Groovy programming language, which is in turn based on the Java virtual machine (JVM) and Java. Use it in addition to the grails and grails-3 tags in specific question to grails 3.1.

From the Grails documentation:

What's new in Grails 3.1?

Grails 3.1 is at the milestone stage, but already includes the following new features.

Spring Boot 1.3 and Spring 4.2

Grails 3.1 has been upgraded to Spring Boot 1.3 and Spring 4.2.

Improvements to Grails 3 Profiles

Profile Publishing and Repositories

The following improvements are available in Grails profiles:

  • Profiles are now published as regular JAR files to any Maven compatible repository (Artifactory, Nexus etc.).
  • Additional profiles can be created easiy with the new create-profile command.
  • Profiles can now contribute to the generation of the build
  • Profiles can now have one or many features

For more information see the new section on Profiles in the user guide.

175 questions
3
votes
1 answer

Can interceptors be executed between authentication and action execution?

Moving from container-managed authentication to the Spring Security plugin in a Grails 3.1.9 app. In the container-managed world, our Grails interceptors executed AFTER authentication for a secured resource. However, with Spring Security, the…
mwersch
  • 105
  • 7
3
votes
2 answers

Unable to install HTML5 drag and drop multi-file upload plugin in Grails 3.1.1

Has anybody has and success installing the HTML5 drag and drop multi-file upload plugin in a Grails 3 application. I have mapped compile "org.grails.plugins:uploadr:1.2.11" in the build.grade file but then also getting this | Error Could not…
Sandeep Roniyaar
  • 204
  • 1
  • 8
  • 26
3
votes
2 answers

Cannot package Grails 3 application - NoSuchMethodError

I'm trying to package my Grails 3.1.5 application. Running grails package (or grails war) results in the following: FAILURE: Build failed with an exception. * What went…
Alex
  • 8,093
  • 6
  • 49
  • 79
3
votes
1 answer

Changes in inplace plugin code in grails3.x are not reloading automatically

I am upgrading a project from Grails 2.5.1 to Grails 3.1.4. My Multi-Project Build structure in Grails 3.1.4 is as follows: - Root |--MainProject |--Plugin1ForMain |--Plugin2ForMain |--settings.gradle I run the MainProject using grails…
sgiri
  • 691
  • 12
  • 28
3
votes
2 answers

memory monitoring of grails 3.1 application

I am currently using grails 3.1. Kindly share the details of any monitoring plugin like grails-melody which is used in grails 2.*. To my knowledge, grails-melody plugin is not applicable in grails 3+ version. Any help is appreciated.
Amarnath R
  • 973
  • 3
  • 14
  • 33
3
votes
2 answers

Deploy Grails 3.1.1 to Heroku

I was using 3.0.14v Grails and I did some deployments to heroku. Everything was working fine, however I wanted to try with Grails 3.1.1 and I'm getting some errors now. I was following this post…
Adrian Rodriguez
  • 452
  • 4
  • 19
3
votes
2 answers

Grails 3 Interceptor and render custom JSON view

I am trying to write a Grails 3 interceptor that should check if certain variables are present in the HTTP Headers. If they are not present i would like to render a specific json view but it seems that the render method is not availble in the…
Marco
  • 15,101
  • 33
  • 107
  • 174
3
votes
1 answer

Gradle DSL for Grails 3.x

Does anybody know where to find the documentation for Grails 3.x's Gradle DSL? I have seen it referenced, e.g in a separate post -> Disable reloading in Grails 3.1 / springloaded However, can't find it in the docs, and the Grails Gradle plugin…
runeaen
  • 461
  • 5
  • 22
3
votes
2 answers

How to configure Grails 3.1.1 to use Hibernate 5

How do I make Grails 3.1.1 user Hibernate 5? The following actions report Hibernate version 4.3.11.Final: In Grails 3.1.1 grails create-app hello311 edit BootStrap.groovy as shown below grails run-app Console shows: Hibernate version is:…
DAC
  • 707
  • 1
  • 6
  • 20
2
votes
1 answer

Grails 3.1.1 - Dirty checking not working when model class extends another groovy class

I have a domain class which extends another groovy class with same name but in different package in a different library. The problem is when I modify instances on the domain class, it is not marked as dirty & hence changes are not persisted. I have…
Pritesh Mhatre
  • 3,847
  • 2
  • 23
  • 27
2
votes
2 answers

Run Integration Tests agains a running Server

How to run Grails integration tests against a running server? I've searched the web but the advices date to 2010 and Grail 1.3.x...
Amio.io
  • 20,677
  • 15
  • 82
  • 117
2
votes
1 answer

Proper way to add packages to component scan in Grails 3

I declared several @Components in src/groovy/my/package of a grails 3.1.10 plugin and added the package name to the component scan by adding the following in grails-app/init/application.groovy: @Override Collection packageNames() { …
Piotr Zakrzewski
  • 3,591
  • 6
  • 26
  • 28
2
votes
1 answer

grails 3 - push notification

I need to implement push notification in my grails 3 project. I searched for a while and could not reach for any plugin/ documentation/ dependency for help. It would be a great help if I can get a full documentation or any hint on how to implement…
2
votes
2 answers

Is this a bug in Grails 3.1.11? I'm using Collection Set within executeQuery and it causes java.lang.ClassCastException

Issue: When trying to use Collection Set within namedParameters of ExecuteQuery It throws: java.lang.ClassCastException java.util.LinkedHashSet cannot be cast to java.lang.Long I can convert the Set to data type List but I was wondering why this…
Hacked Child
  • 91
  • 1
  • 5
2
votes
0 answers

Grails 3: Configure SSO to custom OAuth2 server

I want to configure SSO authorization to my custom OAuth2 server, written on Grails with grails-spring-security-oauth2-provider. I successfully configured demo REST API server on Spring Boot 1.4.0 and Spring Cloud Security for using this…
Sergey Linnik
  • 397
  • 4
  • 14
1 2
3
11 12