def SpringVersion = '5.0.3.RELEASE' def JettyVersion = '9.4.8.v20171121' //''9.2.21.v20170120' subprojects { apply plugin: 'java' apply plugin: 'eclipse' //apply plugin: 'idea' //apply plugin: 'maven' version = '1.0' sourceCompatibility = 1.8 targetCompatibility = 1.8 [compileJava, compileTestJava]*.options*.encoding = "UTF-8" repositories { jcenter() //maven { url "http://192.168.2.199:8081/nexus/content/groups/public/" } //mavenCentral() } configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> if (details.requested.group == "org.springframework") { details.useVersion "${SpringVersion}" } } } configurations { all*.exclude group: 'commons-logging', module: 'commons-logging' } task wrapper(type: Wrapper) { gradleVersion = '3.5' } 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(':saas-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.25' compile 'org.slf4j:jcl-over-slf4j:1.7.25' compile 'ch.qos.logback:logback-classic:1.2.2' compile 'com.google.guava:guava:20.0' compile 'mysql:mysql-connector-java:5.1.35' compile 'com.alibaba:druid:1.0.29' compile "org.eclipse.jetty:jetty-server:${JettyVersion}" compile "org.eclipse.jetty:jetty-webapp:${JettyVersion}" compile "org.eclipse.jetty.websocket:websocket-server:${JettyVersion}" 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.springframework.security:spring-security-web:${SpringVersion}" compile "org.springframework.security:spring-security-config:${SpringVersion}" compile "org.springframework.security:spring-security-crypto:${SpringVersion}" compile "org.springframework:spring-websocket:${SpringVersion}" compile "org.springframework:spring-messaging:${SpringVersion}" compile 'joda-time:joda-time:2.9.9' compile 'com.fasterxml.jackson.core:jackson-core:2.9.4' compile 'com.fasterxml.jackson.core:jackson-databind:2.9.4' compile 'org.apache.httpcomponents:httpclient:4.5.5' compile 'org.apache.commons:commons-lang3:3.6' compile 'commons-fileupload:commons-fileupload:1.3.3' compile "org.apache.poi:poi:3.17" compile "org.apache.poi:poi-ooxml:3.17" compile "org.apache.poi:poi-ooxml-schemas:3.17" testCompile 'junit:junit:4.12' } } project(':saas-enterprise') { dependencies { compile project(':saas-core') compile fileTree( dir: "lib", include: '*.jar' ) compile 'org.freemarker:freemarker:2.3.26-incubating' compile 'com.thoughtworks.xstream:xstream:1.4.8' compile 'xpp3:xpp3_min:1.1.4c' compile 'commons-pool:commons-pool:1.6' compile 'com.google.protobuf:protobuf-java:2.4.1' compile 'javax.mail:mail:1.5.0-b01' } task deploy(dependsOn: [copyLib, copyWebapp]) } project(':saas-operation') { dependencies { compile project(':saas-core') compile fileTree( dir: "lib", include: '*.jar' ) compile 'org.freemarker:freemarker:2.3.26-incubating' } task deploy(dependsOn: [copyLib, copyWebapp]) } project(':saas-task') { dependencies { compile project(':saas-core') compile fileTree( dir: "lib", include: '*.jar' ) compile 'io.netty:netty-all:4.1.13.Final' // compile 'io.netty:netty-transport-native-epoll:4.1.13.Final' } task deploy(dependsOn: [copyLib, copyWebapp]) }