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 { //maven { url "http://192.168.2.199:8081/nexus/content/groups/public/" } mavenCentral() } configurations { all*.exclude group: 'commons-logging', module: 'commons-logging' } 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' } } project(':brain-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 '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 '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 'org.bouncycastle:bcprov-jdk16:1.45' compile 'commons-codec:commons-codec:1.10' compile 'org.apache.poi:poi-ooxml:3.13-beta1' testCompile 'junit:junit:4.11' } task deploy(dependsOn: [copyLib, copyWebapp]) } project(':brain-logic') { dependencies{ compile project(':brain-core') compile fileTree( dir: "lib", include: '*.jar' ) compile 'io.springfox:springfox-swagger2:2.6.0' testCompile 'junit:junit:4.11' } task deploy(dependsOn: [copyLib, copyWebapp]) } project(':brain-wechat') { dependencies{ compile project(':brain-core') compile fileTree( dir: "lib", include: '*.jar' ) testCompile 'junit:junit:4.11' } task deploy(dependsOn: [copyLib, copyWebapp]) } project(':brain-admin') { dependencies{ compile project(':brain-core') compile fileTree( dir: "lib", include: '*.jar' ) compile "org.eclipse.jetty:jetty-jsp:${JettyVersion}" compile 'org.apache.shiro:shiro-all:1.2.3' testCompile 'junit:junit:4.11' } task deploy(dependsOn: [copyLib, copyWebapp]) } project(':brain-task') { dependencies{ compile project(':brain-core') compile fileTree( dir: "lib", include: '*.jar' ) testCompile 'junit:junit:4.11' } task deploy(dependsOn: [copyLib, copyWebapp]) }