1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- def SpringVersion = '4.2.0.RELEASE'
- def JettyVersion = '9.2.14.v20151106'
- subprojects {
- apply plugin: 'java'
- apply plugin: 'eclipse'
-
- version = '1.0'
- sourceCompatibility = 1.7
- targetCompatibility = 1.7
- [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(':sales-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 'javax.mail:mail:1.5.0-b01'
- 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'
- testCompile 'junit:junit:4.11'
- }
- task deploy(dependsOn: [copyLib, copyWebapp])
- }
- project(':sales-logic') {
- dependencies{
- compile project(':sales-core')
- compile fileTree( dir: "lib", include: '*.jar' )
- testCompile 'junit:junit:4.11'
- }
- task deploy(dependsOn: [copyLib, copyWebapp])
- }
- project(':sales-admin') {
- jar.exclude 'wechat4j.properties'
- dependencies{
- compile project(':sales-core')
- compile fileTree( dir: "lib", include: '*.jar' )
- compile "org.eclipse.jetty:jetty-jsp:${JettyVersion}"
- compile 'org.apache.shiro:shiro-all:1.2.3'
- compile 'com.thoughtworks.xstream:xstream:1.4.8'
- compile 'xpp3:xpp3_min:1.1.4c'
- compile 'com.google.protobuf:protobuf-java:2.4.1'
- compile 'commons-pool:commons-pool:1.6'
- testCompile 'junit:junit:4.11'
- }
- task deploy(dependsOn: [copyLib, copyWebapp])
- }
|