123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- def SpringVersion = '4.3.10.RELEASE'
- def JettyVersion = '9.2.30.v20200428'
- def ShiroVersion = '1.4.1'
- subprojects {
- apply plugin: 'java'
- apply plugin: 'eclipse'
- apply plugin: 'maven-publish'
-
- 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'
- }
-
- 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(':shebao-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.12'
- compile 'org.slf4j:jcl-over-slf4j:1.7.12'
- compile 'ch.qos.logback:logback-classic:1.1.3'
- compile 'javax.mail:mail:1.5.0-b01'
- compile 'com.fasterxml.jackson.core:jackson-databind:2.9.6'
- compile 'com.google.guava:guava:20.0'
- compile 'org.javassist:javassist:3.20.0-GA'
- 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.9.1'
- compile "org.springframework.data:spring-data-redis:1.6.6.RELEASE"
- compile 'org.apache.httpcomponents:httpclient:4.5'
- compile 'commons-beanutils:commons-beanutils:1.8.3'
- compile 'org.apache.commons:commons-lang3:3.1'
- compile 'commons-fileupload:commons-fileupload:1.3.1'
- compile 'org.apache.commons:commons-pool2:2.3'
- compile 'joda-time:joda-time:2.8.1'
- compile 'com.alibaba:druid:1.0.15'
- compile 'org.mozilla:rhino:1.7.7'
- compile 'javax.xml.bind:jaxb-api:2.2.12'
- compile 'dom4j:dom4j:1.6.1'
- compile 'io.jsonwebtoken:jjwt:0.9.1'
-
- compile 'io.springfox:springfox-swagger2:2.9.2'
- compile 'com.github.xiaoymin:swagger-bootstrap-ui:1.9.6'
- }
- }
- project(':shebao-logic') {
- dependencies{
- compile project(':shebao-core')
- compile fileTree( dir: "lib", include: '*.jar' )
- 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'
- compile 'org.bouncycastle:bcprov-jdk16:1.45'
- compile 'com.alipay.sdk:alipay-sdk-java:3.7.4.ALL'
- testCompile 'junit:junit:4.11'
- }
- task deploy(dependsOn: [copyLib, copyWebapp])
- }
- project(':shebao-admin') {
- dependencies{
- compile project(':shebao-core')
- compile fileTree( dir: "lib", include: '*.jar' )
- compile 'org.aspectj:aspectjrt:1.8.6'
- compile 'org.aspectj:aspectjweaver:1.8.6'
- compile 'org.jdom:jdom2:2.0.6'
- compile "org.apache.poi:poi:3.17"
- compile "org.apache.poi:poi-ooxml:3.17"
- compile "org.apache.poi:poi-ooxml-schemas:3.17"
- compile 'jstl:jstl:1.2'
- compile "org.eclipse.jetty:jetty-jsp:${JettyVersion}"
- compile "org.eclipse.jetty.websocket:websocket-server:${JettyVersion}"
- compile 'org.springframework.security:spring-security-web:4.0.2.RELEASE'
- compile 'org.springframework.security:spring-security-config:4.0.2.RELEASE'
- compile "org.springframework:spring-websocket:${SpringVersion}"
- compile "org.springframework:spring-messaging:${SpringVersion}"
- compile 'de.danielbechler:java-object-diff:0.94'
- 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])
- }
- project(':shebao-web') {
- dependencies{
- compile project(':shebao-core')
- compile fileTree( dir: "lib", include: '*.jar' )
- compile 'org.apache.poi:poi-ooxml:3.13-beta1'
- compile 'net.sf.json-lib:json-lib:2.4:jdk15'
- compile "org.eclipse.jetty:jetty-jsp:${JettyVersion}"
- compile 'org.bouncycastle:bcprov-jdk16:1.45'
- compile 'com.aliyun.oss:aliyun-sdk-oss:3.9.1'
- testCompile 'junit:junit:4.11'
- }
- task deploy(dependsOn: [copyLib, copyWebapp])
- }
- project(':shebao-task') {
- dependencies{
- compile project(':shebao-core')
- compile fileTree( dir: "lib", include: '*.jar' )
- 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'
- compile 'com.alipay.sdk:alipay-sdk-java:4.9.79.ALL'
- testCompile 'junit:junit:4.11'
- }
- task deploy(dependsOn: [copyLib, copyWebapp])
- }
- project(':shebao-open') {
- dependencies{
- compile project(':shebao-core')
- compile fileTree( dir: "lib", include: '*.jar' )
-
- compile 'io.github.openfeign.form:feign-form:3.4.0'
- compile 'io.github.openfeign.form:feign-form-spring:3.4.0'
- compile 'org.springframework.cloud:spring-cloud-starter-openfeign:2.0.1.RELEASE'
- testCompile 'junit:junit:4.11'
- }
- task deploy(dependsOn: [copyLib, copyWebapp])
- }
- project(':shebao-h5') {
- jar.exclude 'h5.properties'
- dependencies{
- compile project(':shebao-core')
- compile fileTree( dir: "lib", include: '*.jar' )
- compile 'org.aspectj:aspectjrt:1.8.6'
- compile 'org.aspectj:aspectjweaver:1.8.6'
- compile 'org.jdom:jdom2:2.0.6'
- compile 'org.apache.poi:poi-ooxml:3.13-beta1'
- compile 'jstl:jstl:1.2'
- compile "org.eclipse.jetty:jetty-jsp:${JettyVersion}"
- compile 'org.apache.httpcomponents:fluent-hc:4.5'
- compile 'org.apache.httpcomponents:httpmime:4.5'
- compile 'commons-collections:commons-collections:3.2.1'
- compile 'org.bouncycastle:bcprov-jdk15on:1.54'
- compile 'com.google.zxing:core:3.1.0'
- compile 'com.google.zxing:javase:3.1.0'
- compile 'com.belerweb:pinyin4j:2.5.1'
-
- testCompile 'junit:junit:4.11'
- }
- task deploy(dependsOn: [copyLib, copyWebapp])
- }
- project(':shebao-oa') {
- jar.exclude 'logback-test.xml'
- jar.exclude 'oa.properties'
- dependencies{
- compile project(':shebao-core')
- compile 'org.apache.poi:poi-ooxml:3.13-beta1'
- compile fileTree( dir: "lib", include: '*.jar' )
- compile "org.eclipse.jetty:jetty-jsp:${JettyVersion}"
- compile "org.apache.shiro:shiro-core:${ShiroVersion}"
- compile "org.apache.shiro:shiro-web:${ShiroVersion}"
- compile "org.apache.shiro:shiro-spring:${ShiroVersion}"
- compile 'org.apache.pdfbox:pdfbox:2.0.8'
- compile 'com.aliyun:aliyun-java-sdk-core:4.4.6'
- compile 'com.aliyun:aliyun-java-sdk-ocr:1.0.9'
- compile 'com.aliyun.oss:aliyun-sdk-oss:3.9.1'
- compile 'dom4j:dom4j:1.6.1'
- compile 'io.github.kostaskougios:cloning:1.10.3'
- compile 'commons-codec:commons-codec:1.10'
- testCompile 'junit:junit:4.11'
- }
- task deploy(dependsOn: [copyLib, copyWebapp])
- }
|