Skip to content
Tools for executing develop time Grails programatically (for build tools)
Java Groovy Shell
Find file
New pull request
Pull request Compare This branch is 63 commits ahead, 1 commit behind jdpgrailsdev:master.
Latest commit cda0830 @alkemist alkemist Use Gradle 1.10.
Failed to load latest commit information.
gradle Use Gradle 1.10.
grails-launcher-ant Introduce a GrailsLaunchContext interface.
grails-launcher Forward the Grails exit code as the JVM exit code.
.gitignore fixed some readme errors.
build.gradle prepare for 1.1. release
gradlew update to Gradle 1.9
gradlew.bat Update gradle and add idea bits.
ideaCodeStyle.xml Update code style.
settings.gradle Renamed project to “grails-launcher”.


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.