Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

56 lines (46 sloc) 1.529 kB
apply plugin: 'groovy'
apply plugin: 'idea'
group = 'com.bleedingwolf.ratpack'
version = '0.2-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
groovy group: 'org.codehaus.groovy', name: 'groovy', version: '1.8.4'
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' }
compile 'org.slf4j:slf4j-api:1.6.3'
testCompile group: 'junit', name: 'junit', version: '4.10'
testRuntime 'org.slf4j:slf4j-simple:1.6.3'
}
task copyToLib(type: Copy) {
into "$buildDir/libs"
from configurations.runtime
}
task deployRatpack(dependsOn: [build,copyToLib], type: Copy) {
into "${System.properties['user.home']}/.groovy/lib"
from "$buildDir/libs"
include "*.jar"
}
task buildDistro(dependsOn: assemble) << {
ant{
mkdir(dir:"$buildDir/ratpack/lib")
mkdir(dir:"$buildDir/ratpack/bin")
}
copy{
from("$projectDir/src/main/binaries")
into "$buildDir/ratpack/bin"
}
ant.chmod(file: "$buildDir/ratpack/bin/ratpack", perm: 'ugo+x')
copy{
from configurations.runtime
into "$buildDir/ratpack/lib"
}
copy{
from "$buildDir/libs"
into "$buildDir/ratpack/lib"
include "Ratpack-*.jar"
}
}
Jump to Line
Something went wrong with that request. Please try again.