From 92987a9bb6b6f90bbc33a48cc17d67ca93ca58e2 Mon Sep 17 00:00:00 2001 From: Tony Erskine Date: Wed, 17 Nov 2021 14:38:18 -0500 Subject: [PATCH] added GSP Configuration for Grails 3.3+ --- src/docs/guide/2.3 Other Configuration.gdoc | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/docs/guide/2.3 Other Configuration.gdoc b/src/docs/guide/2.3 Other Configuration.gdoc index 72dfe902..efb77bd3 100644 --- a/src/docs/guide/2.3 Other Configuration.gdoc +++ b/src/docs/guide/2.3 Other Configuration.gdoc @@ -17,3 +17,26 @@ An alternative to disabling email or using something like the "greenmail plugin" {code} grails.mail.overrideAddress = "test@address.com" {code} + +h3. GSP Configuration + +If you're using GSP views to render HTML emails, you will need to configure the GSP plugin. + +GSP was previously part of Grails core, but since version 3.3 it is an independent Grails plugin that can be used by defining the following dependency in your build.gradle: + +build.gradle + +{code} +dependencies { + ... + implementation "org.grails.plugins:gsp:5.0.1" +} +{code} + +In addition for production compilation you should apply the grails-gsp Gradle plugin: + +build.gradle + +{code} +apply plugin:"org.grails.grails-gsp" +{code}