Tools for executing develop time Grails programatically (for build tools)
Java Groovy Shell
Pull request Compare This branch is 63 commits ahead, 1 commit behind jdpgrailsdev:master.
Latest commit cda0830 Jan 21, 2014 @alkemist alkemist Use Gradle 1.10.


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.*")