apply plugin: 'java-library-distribution' apply plugin: 'maven-publish' distributions { main{ baseName = 'MOA-SPSS' } } dependencies { compile fileTree(dir: '../libs', include: '*.jar') compile project(':common') testCompile project(path: ':common', configuration: 'tests') compile 'log4j:log4j:1.2.17' compile 'commons-logging:commons-logging:1.2' compile 'commons-io:commons-io:2.6' compile 'commons-codec:commons-codec:1.11' compile 'org.apache.axis:axis-jaxrpc:1.4' compile 'org.xerial:sqlite-jdbc:3.25.2' compile 'javax.xml.bind:jaxb-api:2.3.1' compile 'com.sun.xml.bind:jaxb-core:2.3.0.1' compile 'com.sun.xml.bind:jaxb-impl:2.3.2' compile 'org.postgresql:postgresql:9.4-1204-jdbc42' compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.8.1' } task releases(type: Copy) { from jar.outputs from distZip.outputs from distTar.outputs into rootDir.toString() + "/releases/" + version }