Quick post on specifying Grails dependencies in BuildConfig.groovy. The recommended way to suck in JAR dependencies in Grails is to use the dependencies DSL maintained in BuildConfig.groovy. I had a need to bring down a dependency that has a classifier attribute on it. Didn't really find anything definitive on how to do it, but it seemed like following a convention might do the trick. Here's how I solved the issue:
repositories {
grailsPlugins()
grailsHome()
grailsCentral()
mavenCentral()
ebr() // SpringSource Enterprise Bundle Repository
}
dependencies {
runtime group:'net.sf.json-lib', name:'json-lib', version:'2.4', classifier:'jdk15'
}