Skip to content

Commit 4aeb9d6

Browse files
committed
Fix NoClassDefFoundError with compileGroovyPages
1 parent 2c45566 commit 4aeb9d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

grails-bootstrap/src/main/groovy/org/grails/config/CodeGenConfig.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ class CodeGenConfig implements Cloneable, ConfigMap {
142142
if(groovyConfig.exists()) {
143143
def envName = Environment.current.name
144144
def configSlurper = new ConfigSlurper(envName)
145+
configSlurper.classLoader = new GroovyClassLoader(getClass().classLoader)
145146
def configObject = configSlurper.parse(groovyConfig.toURI().toURL())
146147
mergeMap(configObject, false)
147148
}

0 commit comments

Comments
 (0)