Skip to content
Tools for executing develop time Grails programatically (for build tools)
Java Groovy Shell
Find file
Pull request Compare This branch is 63 commits ahead, 1 commit behind jdpgrailsdev:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.


A thin jar with no dependencies for launching Grails (with an isolated classpath) programatically (e.g from Maven or Gradle) in the same JVM.

import org.grails.launcher.GrailsLauncher
import org.grails.launcher.RootLoader

// Setup the classpath for Grails
def classpath = []

grailsJars.each { path ->
    classpath << new URL(path)

// Create a root class loader
def classloader = new RootLoader(classpath)

def launcher = new GrailsLauncher(classloader, null, "/a/grails/project")
launcher.launch("test-app", "integration some.package.*")
Something went wrong with that request. Please try again.