grails-documentation

Documentation and tutorials about grails

View on GitHub

Why should I update?

Steps to upgrade to Grails 5

  1. Update your gradle version in gradle/wrapper/gradle-wrapper.properties, Grails 5 is using Gradle 7.2 and later distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip also you can run this command ./gradlew wrapper --gradle-version 7.2

  2. Update your grailsVersion, gorm.version and groovyVersion in your gradle.properties
    grailsVersion=5.2.0
    groovyVersion=3.0.7
    gorm.version=7.2.0

  3. Update your views-gradle should be like this "org.grails.plugins:views-gradle:2.3.2"

  4. In your build.gradle you need to use implementation instead of compile, providedRuntime instead of provided, runtimeOnly instead of runtime, testImplementation instead of testCompile