Skip to content

Commit 5c606da

Browse files
committed
Set the parent classloader to prevent exception loading GroovyScriptCommand
1 parent c5b59ff commit 5c606da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-shell/src/main/groovy/org/grails/cli/GrailsCli.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ class GrailsCli {
565565
// ignore
566566
}
567567
def profiles = (List<URL>)dependencyMap.get("profiles")
568-
URLClassLoader classLoader = new URLClassLoader(urls as URL[])
568+
URLClassLoader classLoader = new URLClassLoader(urls as URL[], Thread.currentThread().contextClassLoader)
569569
this.profileRepository = new StaticJarProfileRepository(classLoader, profiles as URL[])
570570
Thread.currentThread().contextClassLoader = classLoader
571571
}

0 commit comments

Comments
 (0)