Skip to content
Snippets Groups Projects
Commit e1cc27c4 authored by anttil's avatar anttil
Browse files

build tracking client zip with gradle

SVN: 32869
parent 9835153f
No related branches found
No related tags found
No related merge requests found
...@@ -10,11 +10,61 @@ apply from: '../gradle/javaproject.gradle' ...@@ -10,11 +10,61 @@ apply from: '../gradle/javaproject.gradle'
archivesBaseName = 'datastore_server_plugin-dsu' archivesBaseName = 'datastore_server_plugin-dsu'
configurations.create('trackingClient')
dependencies { dependencies {
compile project(':common'), compile project(':common'),
project(':datastore_server') project(':openbis-common'),
project(':openbis_api'),
testCompile project(path: ':datastore_server', configuration: 'tests') project(':openbis'),
project(':datastore_server')
testCompile project(path: ':datastore_server', configuration: 'tests')
trackingClient 'cisd:cisd-base:+',
'javax:activation:+',
'javax:mail:+',
'apache:log4j:+',
'springframework:spring:+',
'marathon:marathon-spring-util:+',
'apache:httpclient:+'
}
task trackingJar(type: Jar) {
archiveName "openbis-tracking-qgf-client.jar"
from zipTree(project(':common').jar.archivePath).plus(
zipTree(project(':openbis-common').jar.archivePath).plus(
zipTree(project(':openbis_api').jar.archivePath).plus(
zipTree(project(':datastore_server').jar.archivePath).plus(
zipTree(project(':openbis').jar.archivePath))))).matching {
include '**/*.class'
}
manifest {
attributes 'Main-Class': 'ch.ethz.bsse.cisd.dsu.tracking.main.TrackingClient',
"Class-Path": configurations.trackingClient.files.collect { it.getName() }.join(' ')
}
}
task trackingZip(type: Zip, dependsOn: [trackingJar]) {
baseName = "openbis-tracking-qgf-client"
from (trackingJar.archivePath) {
into "tracking/lib"
}
from (configurations.trackingClient.files) {
into "tracking/lib"
}
from ('tracking/dist/etc') {
into "tracking/etc"
}
from ('tracking/dist/tracking.sh') {
into "tracking/"
}
} }
task zip(type: Zip) { task zip(type: Zip) {
...@@ -30,4 +80,5 @@ task zip(type: Zip) { ...@@ -30,4 +80,5 @@ task zip(type: Zip) {
} }
zip.dependsOn jar zip.dependsOn jar
build.dependsOn zip build.dependsOn zip
\ No newline at end of file build.dependsOn trackingZip
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment