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-core') { jar.exclude 'logback-test.xml' jar.exclude 'config.properties' jar.exclude 'env.properties' dependencies{ compile fileTree( dir: "lib", include: '*.jar' ) compile 'org.slf4j:slf4j-api:1.7.21' compile 'org.slf4j:jcl-over-slf4j:1.7.21' compile 'org.slf4j:jul-to-slf4j:1.7.21' compile 'org.slf4j:log4j-over-slf4j:1.7.21' compile 'ch.qos.logback:logback-classic:1.1.7' compile 'com.fasterxml.jackson.core:jackson-databind:2.8.5' compile 'com.google.guava:guava:20.0' compile 'org.javassist:javassist:3.22.0-CR1' compile "org.springframework:spring-aspects:${SpringVersion}" compile "org.springframework:spring-context:${SpringVersion}" compile "org.springframework:spring-context-support:${SpringVersion}" compile "org.springframework:spring-jdbc:${SpringVersion}" compile "org.springframework:spring-web:${SpringVersion}" compile "org.springframework:spring-webmvc:${SpringVersion}" compile "org.eclipse.jetty:jetty-server:${JettyVersion}" compile "org.eclipse.jetty:jetty-webapp:${JettyVersion}" compile "org.eclipse.jetty:jetty-annotations:${JettyVersion}" compile "org.eclipse.jetty:jetty-jmx:${JettyVersion}" compile 'mysql:mysql-connector-java:5.1.35' compile 'org.reflections:reflections:0.9.10' compile 'redis.clients:jedis:2.7.3' compile 'org.apache.httpcomponents:httpclient:4.5.2' compile 'commons-beanutils:commons-beanutils:1.8.3' compile 'org.apache.commons:commons-lang3:3.5' compile 'joda-time:joda-time:2.9.6' compile 'com.alibaba:druid:1.0.27' compile 'org.mozilla:rhino:1.7.7' compile 'javax.xml.bind:jaxb-api:2.2.12' compile 'com.alibaba:fastjson:1.2.20' compile 'commons-pool:commons-pool:1.6' compile 'commons-fileupload:commons-fileupload:1.3.2' compile 'commons-collections:commons-collections:3.2.2' compile 'org.bouncycastle:bcprov-jdk16:1.45' compile 'commons-codec:commons-codec:1.10' compile 'org.hibernate:hibernate-validator:5.2.1.Final' compile 'javax.el:javax.el-api:3.0.1-b06' compile 'com.google.zxing:core:3.1.0' compile 'com.google.zxing:javase:3.1.0' compile 'javax.mail:mail:1.5.0-b01' compile 'org.apache.poi:poi-ooxml:4.0.1' compile ('com.alibaba:dubbo:2.5.4'){exclude(module: 'spring')} 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]) }