def SpringVersion = '4.2.0.RELEASE' def JettyVersion = '9.2.14.v20151106' subprojects { apply plugin: 'java' apply plugin: 'eclipse' version = '1.0' sourceCompatibility = 1.8 targetCompatibility = 1.8 [compileJava, compileTestJava]*.options*.encoding = "UTF-8" repositories { mavenCentral() } configurations { all*.exclude group: 'commons-logging', module: 'commons-logging' } } project(':sp-plugin-param') { dependencies{ compile project(':sp-core') compile fileTree( dir: "lib", include: '*.jar' ) testCompile "org.springframework:spring-test:${SpringVersion}" testCompile 'junit:junit:4.11' } task copyLib(type: Sync, dependsOn: jar) { from configurations.compile from jar.archivePath into 'build/deploy' } task copyWebapp(type: Sync) { from 'src/main/webapp' into 'build/deploy/webapp' } task deploy(dependsOn: [copyLib, copyWebapp]) }