Questions tagged [grails-3.0.9]

Web application framework, Groovy version of Ruby on Rails, to use in Java development

28 questions
8
votes
1 answer

error while exporting grails 2 plugin to grails 3

I have been trying to upgrade the grails spring-security-ui plugin to grails 3. As mentioned in the docs I have copied all the dependencies to build.gradle. The file looks something like this. buildscript { ext { grailsVersion =…
7
votes
2 answers

Grails 3 Unit Testing: How do you do mockFor, createMock, and demands in Grails 3?

I'm upgrading an application from Grails 2.4.4 to Grails 3.0.9, and I can't find any information on how to do mockFor, createMock, and demands in Grails 3. I used to do things like this: fooService = mockFor(FooService) controller.fooService =…
HypeMK
  • 331
  • 3
  • 9
4
votes
2 answers

How to change Grails 3 SDK path in IntelliJ project once created?

I would like to change my project from Grails from 3.0.9 to 3.0.10 since latter contains Promise API. How to do that in IntelliJ?
Dims
  • 47,675
  • 117
  • 331
  • 600
3
votes
2 answers

Failed to apply gradle grails plugin after migrating Grails from 2.x to 3.x

My build.gradle file fails with below error after migrating from Grails 2.x to 3.x. Failed to apply plugin [id 'grails'] Could not find method create() for arguments [main] on [Java source 'main:j ava', JVM resources 'main:resources', Java source…
Alice
  • 271
  • 2
  • 12
2
votes
1 answer

Grails 3 - achieving customization of template in a way it was possible with _form.gsp in version 2

I am relatively new to Grails and I am little disappointed with the way _form.gsp removed with field plugin in Grails 3. _form.gsp seemed to be good time saving option when we need to customize views with Bootsrap or materialize. Now with grails 3,…
hemu
  • 3,199
  • 3
  • 44
  • 66
2
votes
0 answers

Grails 3.0.9 gradle new task with custom environment

I'm trying to create a new task in build.gradle for running "check" with a custom environment called "integration". I've tried several things and I've been able to run the check task from my custom task but I can't find the way to set the…
Eylen
  • 2,617
  • 4
  • 27
  • 42
2
votes
0 answers

Grails 3 deep JSON marshaller

I've defined and registered some custom marshallers for my domain objects. If used alone, just rendering one instance, works fine, but the problem comes when I return a map with an array of those instances. In this moment my custom marshaller is not…
Eylen
  • 2,617
  • 4
  • 27
  • 42
2
votes
2 answers

Inject services to src/groovy in Grails 3.0.9

I am trying to create an EndPoint file. So I created a file with name ServerEndPointDemo.groovy package com.akiong import grails.util.Environment import grails.util.Holders import javax.servlet.ServletContext import…
user2809386
1
vote
1 answer

URL Mapping - Replacing characters in a parameter pulled from a database

I am currently trying to figure out, how to modify the parameter being integrated into the URL Mapping I am using. static mappings = { "/$controller/$action?/$id?/(.$format)?" { constraints { // apply constraints here …
Nimmi
  • 11
  • 3
1
vote
1 answer

Table not being created in Grails 3

I am using Grails 3.0.9 application.yml: hibernate: cache: queries: false use_second_level_cache: true use_query_cache: false region.factory_class: 'org.hibernate.cache.ehcache.EhCacheRegionFactory' endpoints: …
Ashu
  • 392
  • 1
  • 7
  • 16
1
vote
0 answers

Grails 3.0.9 not updating object with MongoDB

I've problems updating a domain class. I'm using Grails 3.0.9 and MongoDB (for Gorm 5.0.0.RC1) In my build.gradle: compile "org.grails.plugins:mongodb:5.0.0.RC1" compile "org.mongodb:mongodb-driver:3.0.2" compile…
kNo
  • 479
  • 1
  • 4
  • 14
1
vote
1 answer

Grails REST spring security plugin version 2.0.0.M1 throwing UnsupportedClassVersionError RestOauthUrlMappings

I am trying to use the grails rest plugin version 2.0.0.M1 with grails 3.x application. Added the grails rest plugin dependency in build.gradle compile "org.grails.plugins:spring-security-rest:2.0.0.M1" Getting UnsupportedClassVersionError when…
Alice
  • 271
  • 2
  • 12
1
vote
0 answers

Grails 3.0.9 and Jobs

I want install Job in Grails 3.0.9: Grails Quartz I add compile 'org.grails.plugins:quartz:2.0.1' in build.gradle and I have error: Warning:root project 'example': Web Facets/Artifacts will not be configured properly Details:…
adibak20
  • 41
  • 4
1
vote
0 answers

GGTS IDE complains unable to resolve plugin classes but the application compiles and runs without issues

GGTS IDE complains unable to resolve plugin classes when importing but the application compiles and runs without issues. Could someone please help resolve this error e.g. : When using grails jms plugin and defining the Queue annotation import…
Alice
  • 271
  • 2
  • 12
1
vote
1 answer

Grails: command not found with Travis-CI

I want to use Travis-CI with my Grails 3.0.9 app. For this I created a .travis.yml file: language: groovy jdk: - oraclejdk7 before_install: - curl -s get.sdkman.io | bash - source "$HOME/.sdkman/bin/sdkman-init.sh" - sdk install grails 3.0.9 …
Peter
  • 1,679
  • 2
  • 31
  • 60
1
2