apply from: 'http://svncisd.ethz.ch/repos/cisd/gradle/trunk/javaproject.gradle' configurations { distribution } dependencies { compile project(':datastore_server') testCompile project(path: ':common', configuration: 'tests') distribution 'jfree:jfreechart:+' } sourceSets { main { resources { srcDirs = ['source/java', 'source', 'targets/dist'] exclude 'java/**' } } } jar { manifest { attributes("Main-Class": "ch.systemsx.cisd.yeastx.BuildAndEnvironmentInfo", "Version": versionNumber, "Build-Number": "${versionNumber} (r${revisionNumber},${cleanFlag})") } } task zip(type: Zip) { from jar from configurations.distribution into 'datastore_server/lib/' rename "datastore_server_plugin-yeastx.*\\.jar", "datastore_server_plugin-yeastx.jar" } zip.dependsOn jar build.dependsOn zip archivesBaseName = 'datastore_server_plugin-yeastx'