4

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

2 Answers2

1

in the gradle.properties file change

grailsVersion=3.0.10

also in the build.gradle change

buildscript {
    ext {
        grailsVersion = project.grailsVersion
    }
}
LynAs
  • 6,407
  • 14
  • 48
  • 83
  • How will it know the path to Grails SDK? – Dims Dec 16 '15 at 18:49
  • you dont need to set grails sdk. only jdk. grails convert your code to byte code then uses jvm to run – LynAs Dec 17 '15 at 05:01
  • Then why it asks me for the path if I am creating Grails project from scratch? – Dims Dec 17 '15 at 07:43
  • if you need to see where it is located after creating the project then go settings >>> language & frmawork >>> grails – LynAs Dec 17 '15 at 13:07
  • 1
    How does it know WHICH grails to use to convert the code to byte code? (Grails is not an option under Language & Framework even though this is a grails 3 project) – Trebla Mar 30 '17 at 13:12
0

You just need to change the grails version in gradle.properties. The gradle build script will pull the required jar files from the grails repo specified in your build file.