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

Not able to access web-app folder files in Grails 3

I am not able to access web-app folder files in Grails 3. I have robots.txt in the web-app folder and in Grails 2 I was able to access it directly at http://localhost:8080/robots.txt. After migrating to Grails 3 I am not able to access it anymore at…
naresh
  • 155
  • 1
  • 11
5
votes
2 answers

Grails 3 - Spring Rest Docs using Rest assured giving SnippetException when using JSON views

I am trying to integrate Spring REST docs with rest assured with Grails 3.1.4 application. I am using JSON Views. Complete code is at https://github.com/rohitpal99/rest-docs In NoteController when I use List noteList = Note.findAll() Map…
rohitpal
  • 455
  • 1
  • 6
  • 21
5
votes
1 answer

Grails 3: Integration tests run at a development environment, not at a test environment

I have separated dataSourceConfig.yml database config file: environments: development: dataSource: dbCreate: none url: jdbc:oracle:thin:xxxxxx driverClassName: oracle.jdbc.OracleDriver …
Sergey Linnik
  • 397
  • 4
  • 14
5
votes
2 answers

Grails clean command throwing Null Pointer Exception

We are planning to upgrade Grails for our application from version 2.0.1 to 3.1.1. On executing grails clean --stacktrace --verbose I am getting the exception given below: | Error Error occurred running Grails CLI: null …
Atul
  • 1,536
  • 3
  • 21
  • 37
5
votes
2 answers

Adding in-place plugin to grails 3 project

In grails 2.x, we were allowed to add an in place plugin by adding following in BuildConfig.groovy grails.plugin.location."my-plugin" = "../my-plugin" My question is, can we add our local plugins similarly in-place in grails3.0 as well or there is…
Vinay Prajapati
  • 7,199
  • 9
  • 45
  • 86
5
votes
1 answer

Grails 3 install-templates only creates a scaffolding directory - no artifacts directory

The main templates I want to modify are the artifacts ones. Anyone knows how to create the artifacts templates? In addition, it only installed these three files in the scaffolding directory: AsyncController.groovy, AsyncSpec.groovy,…
Chris Malan
  • 127
  • 1
  • 8
4
votes
0 answers

Grails 3.x- GORM - inList fails on members start with underscore (_)

I have this class class ScanRequest4Command implements Validateable { String _ScanType static constraints = { pScanType inList:["a", "b"] } } this code worked fine in grails 2.4.4 lately, we started upgrading to grails…
No Idea For Name
  • 11,411
  • 10
  • 42
  • 70
4
votes
0 answers

Unable to create initial connection of pool with H2 Database in grails application

We have an grails application having a H2 Database for storing data. DB file size is around 31GB file. In production, when I tried to connect and run the war file. Same war is working fine with new db folder. But the folder having a db file of 31GB…
4
votes
4 answers

what should be the best gitignore for grails3.1.x?

Since grails 3.1.x has major changes, what would be appropriate .gitignore? For now, I've used default grails .gitignore
sgiri
  • 691
  • 12
  • 28
4
votes
1 answer

grails create-app not working in Grails 3.1.3

I cannot create a working app in grails 3.1.3 in Windows 7. grails create-app temp cd temp grails --stacktrace --verbose Results: | Error Error occurred running Grails CLI: Profile [org.grails.profiles:base:3.1.3] declares and invalid dependency on…
DAC
  • 707
  • 1
  • 6
  • 20
4
votes
1 answer

Grails 3.1 json rendering

I have just upgraded my application from grails 3.0.13 to grails 3.1.1. In doing so I got an interesting problem with JSON rendering. I have been using a custom JSON marshaler: JSON.registerObjectMarshaller(Appointment) { Appointment appointment -> …
Andréas K
  • 228
  • 1
  • 8
3
votes
0 answers

Grails 3 and Spring Security Maximum Concurrent Session

by default there is not an option to set maximum concurrent session propery in grails spring security plugin. That is available with spring security (spring security session control). How can i implement such functionality with grails 3 using spring…
3
votes
1 answer

Excluding files/directories from WAR packaging in Grails 3

In my Grails 3.1.10 app, I have a few files in src/main/webapp/ng directory for an Angular app and I want to exclude few of the directories/files from packaging to the WAR file at the time of grails package command. In Grails 2.x app, we have…
Shashank Agrawal
  • 25,161
  • 11
  • 89
  • 121
3
votes
3 answers

Using mongodb and hibernate with grails3

I need to run a Grails 3 app against MySql/Hibernate and MongoDB. (Had is running on Grails 2.5 without an hitch). I tried many different combinations, searched and tried related SO answers, but with no luck. Used the latest Mongodb plugin doc for…
3
votes
2 answers

Customise Spring Security 3.1.1 Login form in Grails 3

I have declared Spring Security in my application.yml as a dependency and when running my app the default login form works as expected. I would like to style the form so my application is seamless. In views/auth I have auth.gsp which contains the…
kulsoompatel
  • 220
  • 1
  • 3
  • 18
1
2
3
11 12