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
28
votes
4 answers

Grails 3 - change default port for run-app

In Grails3 grails -Dserver.port=9001 run-app doesn't appear to work: I'm "getting address already bound 8080". Any idea how to do this - ideally by passing a property to "gradle run"?
Neill Robbins
  • 409
  • 1
  • 4
  • 4
22
votes
4 answers

Grails 3 and Spring Security Plugin

I've just recently started working with Grails, and I'd like to test out the Spring Security Plugin. I'm using Grails v3.0.0RC2, and I'm finding it difficult to come across accurate documentation for it with a lot of things. I'm looking at the…
ekbarber
  • 578
  • 1
  • 4
  • 9
20
votes
1 answer

How to connect Grails 3.0 to my local Mysql database

I'm quite new with Grails and trying to connect my application to my local mysql database. Since I'm working with the latest version of Grails, I couldn't really find a lot of documentation to help me out. Is there any clear documentation which…
Thomas Swolfs
  • 213
  • 1
  • 2
  • 8
19
votes
7 answers

How to enable CORS in Grails 3.0.1

I would like to do cross origin communication using Grails in server side. The only documentation that I found is this one https://grails.org/plugin/cors but this is for an old version of Grails. The other documentation that I found is for…
Luis Vargas
  • 2,146
  • 1
  • 12
  • 27
17
votes
6 answers

Grails3 file upload maxFileSize limit

I am trying to update the file upload maxFileSize limit in Grails 3 and tried the configuration in src/main/resources/application.properties, application.groovy and application.yml, but it's still throwing the exception Class …
Naman Jain
  • 201
  • 1
  • 2
  • 8
13
votes
4 answers

Debug a Grails 3.x application

I am trying to debug a Grails 3.x application using grails run-app --debug-fork. But when the application starts it does not wait for the debugger to attach. Any solution on how to debug a Grails 3.x application?
Marco
  • 12,916
  • 27
  • 97
  • 162
10
votes
1 answer

Generate JSON With JSON-Views

I am trying to use JSON-Views in Grails 3.1. I have the following controller: package myapp BasketController { def index(ProductFilterCommand cmd) { [basketList: service.findAllBaskets()] } } And the following classes: package…
Sergio del Amo
  • 71,609
  • 66
  • 148
  • 177
10
votes
1 answer

Grails 3.0 Ajax call replacement due to deprecation

Grails 3.0.0 M1 states that g:remoteLink is deprecated and in 3.0.1 it no longer exists in the g: namespace. There is nothing in the documentation that suggests replacement of this functionality. Will someone please respond with a replacement…
TeamDitto
  • 457
  • 6
  • 17
10
votes
4 answers

Best way to reference Bootstrap in a Grails 3 app

I'm wanting to pull in Twitter's Bootstrap into my Grails 3 app. What's the best way to do this? I neither want to place the source under version control nor reference remote CDNs. Adding "org.grails:grails-bootstrap:3.0.1" as a compilation…
tomwadeson
  • 141
  • 1
  • 5
10
votes
1 answer

IDEA 14 and Grails 3.x unindexed remote maven repositories found

I am importing a new Grails 3.0.1 application into IU 14.1.1 and receiving a warning that "unindexed remote maven repositories found": Opening the repositories list and clicking update as suggested does not seem to do anything. IDEA does not have…
James Allman
  • 38,410
  • 9
  • 53
  • 69
9
votes
2 answers

How to enable Grails 3.x auto-reload?

I am unable to get auto-reloading working on newly created controllers. My application starts correctly but whenever i do grails create-controller the controller is created and i see that the new controller is compiled. When i try…
Marco
  • 12,916
  • 27
  • 97
  • 162
8
votes
3 answers

How do I publish a grails 3 plugin to my local nexus repo?

Running grails publish-plugin doesn't seem to do anything, and the only documentation I could find was about publishing to bintray. [edit:] I can publish the plugin via gradle publish, but wondered if there was a grails-y way to do it, and wonder…
Charlotte Tan
  • 2,162
  • 2
  • 15
  • 23
8
votes
2 answers

Grails 3 @Delegate notation, using a domain object

Under Grails 2.4.4, we had classes we used as wrappers for domain objects. They would look like this: class Foo { @Delegate OurDomainClass ourDomainClass ... } This worked, but when trying to compile under Grails 3.0.11, we get…
Sean LeBlanc
  • 185
  • 11
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 =…
8
votes
2 answers

Create Grails 3 WAR without version number

In Grails 2 we could define WAR filename like this: grails.project.war.file = "target/${appName}.war" How can I override the war filename in Grails 3? Thanks Jeff. I have added line like thisin build.gradle: war { archiveName…
sfgroups
  • 14,561
  • 19
  • 83
  • 153
1
2 3
28 29