...
To enable GPars in your Grails application, alter the BuildConfig.groovy file as follows:
| Code Block |
|---|
repositories {
mavenCentral()
mavenRepo 'http://repository.jboss.org/maven2/'
}
dependencies {
build 'org.codehaus.gpars:gpars:0.11'
}
|
In Griffon, use the following:
| Code Block |
|---|
griffon.project.dependency.resolution = {
inherits "global"
default dependencies
repositories {
griffonHome()
mavenCentral()
}
dependencies {
runtime org.codehaus.gpars:gpars:0.11
}
}
}
|
Once the dependency has been specified, you can start using GPars in your project. You may now want to check out the Groovy Fast Track to do your first GPars experiments. Alternatively go directly to the User Guide and have fun!