Skip to content

Instantly share code, notes, and snippets.

@jflowers
Last active October 13, 2015 20:47
Show Gist options
  • Save jflowers/4253447 to your computer and use it in GitHub Desktop.
Save jflowers/4253447 to your computer and use it in GitHub Desktop.
gradle zip deps
apply plugin: 'java'
apply from : 'jaxb.gradle'
sourceCompatibility = 1.7
jar {
// build the jar without the version in its name
version = ''
manifest {
attributes 'Implementation-Title': 'CDC Cloud S&S', 'Implementation-Version': project.version
}
}
dependencies {
compile 'com.caucho:hessian:3.1.3'
compile 'com.sun.xml.bind:jaxb:2.1.9'
compile 'org.apache.commons:commons-io:1.3.2'
compile 'org.apache.velocity:velocity:1.7'
compile 'org.slf4j:slf4j-api:1.7.2'
compile 'ch.qos.logback:logback-classic:1.0.9'
compile 'org.fusesource.jdbm:jdbm:2.0.1'
compile 'org.drools:drools-core:5.5.0.Final'
compile 'org.drools:drools-compiler:5.5.0.Final'
compile 'gov.cdc.vocab:vocab-service:2'
compile 'gov.nist.validation:hl7v2mv:1.8'
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-all:1.9.5'
testCompile 'net.sf.opencsv:opencsv:2.3'
}
// generate sample HL7
task(sampleHL7, dependsOn: 'testClasses', type: JavaExec) {
main = 'gov.cdc.CsvTestMessageExtractor'
classpath = sourceSets.test.runtimeClasspath
doLast {println 'Your sample HL7 messages are in the sample-hl7 folder.'}
}
task zip(type: Zip) {
baseName "cdc-cloud-ss"
version project.version
destinationDir file('build')
files(dependencies.resolve("compile") as File[])
}
tasks.build.dependsOn(zip)
artifacts {
archives(zip.archivePath) {
name 'cdc-cloud-ss'
type 'zip'
builtBy zip
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment