Questions tagged [grails-3.0]

Grails 3.0 is the next major version of the Grails framework, which introduces some radical (and also breaking) changes on the platform compared to the 2.x versions. The main differences are the use of Gradle for building and using Groovy traits for the internal APIs.

Grails 3.0 is the next major version of the framework, which introduces some radical (and also breaking) changes on the platform compared to the 2.x versions. The main differences are the use of for building and using traits for the internal APIs.

What's new in Grails 3.0?

Core Features

  • Groovy 2.4

  • Spring 4.1 and Spring Boot 1.2

  • Gradle Build System

  • Application Profiles

  • Redesigned API based on Traits

Development Environment Features

  • New Shell and Code Generation API

  • Enhanced IDE Integration

  • Application Main Class

Testing Features

  • Integration and Geb Functional Tests

  • Gradle Test Running

421 questions
6
votes
1 answer

Grails 3.0 support in NetBeans

I was running Grails 2.2.0 in NetBeans and it was working fine. I tried to upgrade the project to Grails 3.0 but after creating the project NetBeans is not able to open the project. Does anyone know which plugins to install in NetBeans (if…
Arpan Solanki
  • 677
  • 13
  • 25
6
votes
0 answers

Grails 3.0.0.M1 - Install scaffolding templates into my Grails project

The only templates I can get in Grails 3 with install-form-fields-templates are create.gsp and edit.gsp from the fields-plugin. Is there any chance to install and use again the old ones with _form.gsp? The fields plugin is not in build.gradle. So is…
rawi
  • 401
  • 3
  • 13
5
votes
1 answer

'demand' of static method is not working with 'new MockFor' in Grails-3.2.4 'Junit Testing'

Can anyone please let me know how to demand static methods of a class. I have tried with below code & it's not working with it: import groovy.mock.interceptor.MockFor final mockCl = new MockFor(ClassName) mockCl.demand.static.methodName(1) {…
Charu Jain
  • 701
  • 1
  • 5
  • 16
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
  • 145
  • 11
5
votes
6 answers

Grails 3 database-migration-plugin initialization error

I recently added database-migration-plugin to my grails 3.0.11 app. The problem is when I try to run-app I get a following error: ERROR grails.boot.GrailsApp - Application startup failed Exception in thread "main"…
iTiger
  • 105
  • 5
5
votes
1 answer

grails 3 plugin installation location

Grails 3 installed a plugin somewhere (and ran it) after the plugin was listed in build.gradle. The plugin name is org.grails.plugins:spring-security-core:3.0.3. It is a mystery to me where it was installed on disk. Some sources point me to .m2…
isgQ
  • 77
  • 4
5
votes
1 answer

Grails 3 Spring Security application.yml

For some reason my staticRules are not applied. Adding the "org.grails.plugins:spring-security-core:3.0.0.M1" plugin and executing grails s2-quickstart com.testapp User Role successfully created the Role User and UserRole Domains. Also an…
Pascal
  • 1,797
  • 2
  • 23
  • 44
5
votes
3 answers

Custom maven repo grails 3

Has anybody has and success installing the Cloudinary plugin in a Grails 3 application. The plugin instructions are here and I've made the modifications I think are correct for Grails 3 : https://bitbucket.org/sbuettner/grails-cloudinary Below is…
Robin M
  • 534
  • 4
  • 18
5
votes
3 answers

Grails mail plugin issues with Gmail SMTP

I'm using the grails mail plugin (2.0.0.RC2) with Grails 3.0.7. This is my config: mail: host: smtp.gmail.com port: 465 username: myuser@gmail.com password: myPassword props: - mail.debug: true …
cloudwalker
  • 1,816
  • 23
  • 54
5
votes
1 answer

Grails3.04, what is "f:table"?

grails 3.04 generate-all mydomain index.gsp what is "f:table"? I can't find it in grails 3.04 document. I can't find it in https://github.com/grails-fields-plugin/grails-fields. What is this magic? How can I get to learn it? I'm sorry, I don't…
Lection.Yu
  • 53
  • 1
  • 3
5
votes
2 answers

Grails3 controller integration test case fail: No thread-bound request found

With just simple following controller action spock integration-test. Here is my Test. @Integration @Rollback class TestControllerSpec extends Specification { def setup() { } def cleanup() { } void "test something"() { …
5
votes
0 answers

Spock Where Block throws nullpointexception in Grails 3 Integration Test

I am trying to run an Grails 3 service integration test with a spock where block. However, I am getting a null pointer exception (see below). If I run it as a succession of then/when blocks it works. Any idea what am I…
Sergio del Amo
  • 71,609
  • 66
  • 148
  • 177
5
votes
2 answers

convert configuration file application.yml to application.groovy in Grails 3.x

I am trying to create a simple Grails 3 project and got stuck with something really simple. So I want my data source properties to come from VM options that I set in my IntelliJ IDE. Before in Grails 2.x, I just used to do something…
Deewendra Shrestha
  • 2,054
  • 1
  • 20
  • 47
5
votes
2 answers

Getting application config in doWithSpring closure with a Grails 3 application

Grails 3 allows authors to use startup hooks similar to the ones provided to Grails 2 plugins. I'm looking at defining beans in the doWithSpring closure, and I'd like to pass values into a new bean based on some configuration values. I can't…
BudJB
  • 101
  • 4
5
votes
2 answers

Error initializing classpath: No subject alternative DNS name matching services.gradle.org found. -> when running grails 3.0.1 app

I created and ran a grails 3.0.1 app at work, but am unable to run it on my personal computer. I followed the same method of installation for grails 3.0.1 (via gvm). The problem seems to be with gradle as grails create-app worked fine. I am also…
atuladhar
  • 53
  • 1
  • 4
1 2
3
28 29