Skip to content

Instantly share code, notes, and snippets.

@jwill
Created July 4, 2011 04:03
Show Gist options
  • Save jwill/1062903 to your computer and use it in GitHub Desktop.
Save jwill/1062903 to your computer and use it in GitHub Desktop.
build.gradle file for a Ratpack app
apply plugin: 'groovy'
apply plugin: 'application'
repositories {
flatDir name:'lib', dirs:'lib'
mavenCentral()
}
dependencies {
groovy group:'org.codehaus.groovy', name:'groovy', version:'1.8.0'
groovy group:'com.bleedingwolf.ratpack', name: 'Ratpack', version:'0.2-SNAPSHOT'
compile group: 'javax.servlet', name: 'servlet-api', version: '2.5'
compile group: 'org.json', name: 'json', version: '20090211'
compile(group: 'org.mortbay.jetty', name: 'jetty', version: '6.1.26') { exclude module: 'servlet-api' }
compile(group: 'org.mortbay.jetty', name: 'jetty-util', version: '6.1.26') { exclude module: 'servlet-api' }
}
installApp {
into('build/install/'+applicationName){
from ('templates').into '/templates'
}
into('build/install/'+applicationName){
from ('public').into '/public'
}
}
distZip {
into(applicationName){
from ('templates').into applicationName+'/templates'
}
into(applicationName){
from ('public').into applicationName+'/public'
}
}
mainClassName = "AppName"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment