Skip to content

Instantly share code, notes, and snippets.

@emoseman
Created August 27, 2012 18:23
Show Gist options
  • Save emoseman/3491076 to your computer and use it in GitHub Desktop.
Save emoseman/3491076 to your computer and use it in GitHub Desktop.
Gradle build file for Java Jersey 1.12
apply plugin: 'java'
apply plugin: 'war'
version = "1.0"
group = "your.org.here"
task explodedWar(type: Copy) {
into "$buildDir/exploded"
with war
}
dependencies {
compile "commons-lang3:commons-lang3:3.1"
compile "commons-beanutils:commons-beanutils:1.8.3"
compile "commons-collections:commons-collections:3.2.1"
compile "commons-exec:commons-exec:1.1"
compile "gson:gson:2.2.2"
compile "jersey-bundle:jersey-bundle:1.12"
compile "jersey-core:jersey-core:1.12"
compile "asm:asm-3.3.1"
compile "postgresql:postgresql:8.4-703.jdbc4"
compile "commons-configuration:commons-configuration:1.8"
compile "servlet-api:servlet-api:2.5"
compile "joda-time:joda-time:2.1"
testCompile "junit:junit:4.10"
testCompile "simple-jndi:simple-jndi:0.11.4.1"
testCompile "jersey-client:jersey-client:1.12"
testCompile "jersey-test-framework-core:jersey-test-framework-core:1.12"
testCompile "jersey-test-framework-grizzly:jersey-test-framework-grizzly:1.12"
testCompile "jsr311-api:jsr311-api:1.1.1"
testCompile "javax.servlet:javax.servlet:3.2-b05"
testCompile "grizzly-http:grizzly-http:1.9.45"
testCompile "grizzly-http-servlet:grizzly-http-servlet:1.9.45"
testCompile "grizzly-portunif:grizzly-portunif:1.9.45"
testCompile "grizzly-servlet-webserver:grizzly-servlet-webserver:1.9.45"
testCompile "grizzly-utils:grizzly-utils:1.9.45"
}
repositories {
mavenCentral()
flatDir {
dirs "$projectDir/lib"
}
}
test {
maxParallelForks = 5
maxHeapSize = '1024m'
}
war {
baseName = "$projectDir"
classpath fileTree(dir:"$projectDir/lib", include: "*.jar")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment