build.gradle 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. def SpringVersion = '4.3.10.RELEASE'
  2. def JettyVersion = '9.2.30.v20200428'
  3. def ShiroVersion = '1.4.1'
  4. subprojects {
  5. apply plugin: 'java'
  6. apply plugin: 'eclipse'
  7. apply plugin: 'maven-publish'
  8. version = '1.0'
  9. sourceCompatibility = 1.8
  10. targetCompatibility = 1.8
  11. [compileJava, compileTestJava]*.options*.encoding = "UTF-8"
  12. repositories {
  13. mavenCentral()
  14. }
  15. configurations {
  16. all*.exclude group: 'commons-logging', module: 'commons-logging'
  17. }
  18. task copyLib(type: Sync, dependsOn: jar) {
  19. from configurations.compile
  20. from jar.archivePath
  21. into 'build/deploy'
  22. }
  23. task copyWebapp(type: Sync) {
  24. from 'src/main/webapp'
  25. into 'build/deploy/webapp'
  26. }
  27. }
  28. project(':shebao-core') {
  29. jar.exclude 'logback-test.xml'
  30. jar.exclude 'config.properties'
  31. jar.exclude 'env.properties'
  32. dependencies{
  33. compile fileTree( dir: "lib", include: '*.jar' )
  34. compile 'org.slf4j:slf4j-api:1.7.12'
  35. compile 'org.slf4j:jcl-over-slf4j:1.7.12'
  36. compile 'ch.qos.logback:logback-classic:1.1.3'
  37. compile 'javax.mail:mail:1.5.0-b01'
  38. compile 'com.fasterxml.jackson.core:jackson-databind:2.9.6'
  39. compile 'com.google.guava:guava:20.0'
  40. compile 'org.javassist:javassist:3.20.0-GA'
  41. compile "org.springframework:spring-aspects:${SpringVersion}"
  42. compile "org.springframework:spring-context:${SpringVersion}"
  43. compile "org.springframework:spring-context-support:${SpringVersion}"
  44. compile "org.springframework:spring-jdbc:${SpringVersion}"
  45. compile "org.springframework:spring-web:${SpringVersion}"
  46. compile "org.springframework:spring-webmvc:${SpringVersion}"
  47. compile "org.eclipse.jetty:jetty-server:${JettyVersion}"
  48. compile "org.eclipse.jetty:jetty-webapp:${JettyVersion}"
  49. compile 'mysql:mysql-connector-java:5.1.35'
  50. compile 'org.reflections:reflections:0.9.10'
  51. compile 'redis.clients:jedis:2.9.1'
  52. compile "org.springframework.data:spring-data-redis:1.6.6.RELEASE"
  53. compile 'org.apache.httpcomponents:httpclient:4.5'
  54. compile 'commons-beanutils:commons-beanutils:1.8.3'
  55. compile 'org.apache.commons:commons-lang3:3.1'
  56. compile 'commons-fileupload:commons-fileupload:1.3.1'
  57. compile 'org.apache.commons:commons-pool2:2.3'
  58. compile 'joda-time:joda-time:2.8.1'
  59. compile 'com.alibaba:druid:1.0.15'
  60. compile 'org.mozilla:rhino:1.7.7'
  61. compile 'javax.xml.bind:jaxb-api:2.2.12'
  62. compile 'dom4j:dom4j:1.6.1'
  63. compile 'io.jsonwebtoken:jjwt:0.9.1'
  64. compile 'io.springfox:springfox-swagger2:2.9.2'
  65. compile 'com.github.xiaoymin:swagger-bootstrap-ui:1.9.6'
  66. }
  67. }
  68. project(':shebao-logic') {
  69. dependencies{
  70. compile project(':shebao-core')
  71. compile fileTree( dir: "lib", include: '*.jar' )
  72. compile 'com.thoughtworks.xstream:xstream:1.4.8'
  73. compile 'xpp3:xpp3_min:1.1.4c'
  74. compile 'com.google.protobuf:protobuf-java:2.4.1'
  75. compile 'commons-pool:commons-pool:1.6'
  76. compile 'org.bouncycastle:bcprov-jdk16:1.45'
  77. compile 'com.alipay.sdk:alipay-sdk-java:3.7.4.ALL'
  78. testCompile 'junit:junit:4.11'
  79. }
  80. task deploy(dependsOn: [copyLib, copyWebapp])
  81. }
  82. project(':shebao-admin') {
  83. dependencies{
  84. compile project(':shebao-core')
  85. compile fileTree( dir: "lib", include: '*.jar' )
  86. compile 'org.aspectj:aspectjrt:1.8.6'
  87. compile 'org.aspectj:aspectjweaver:1.8.6'
  88. compile 'org.jdom:jdom2:2.0.6'
  89. compile "org.apache.poi:poi:3.17"
  90. compile "org.apache.poi:poi-ooxml:3.17"
  91. compile "org.apache.poi:poi-ooxml-schemas:3.17"
  92. compile 'jstl:jstl:1.2'
  93. compile "org.eclipse.jetty:jetty-jsp:${JettyVersion}"
  94. compile "org.eclipse.jetty.websocket:websocket-server:${JettyVersion}"
  95. compile 'org.springframework.security:spring-security-web:4.0.2.RELEASE'
  96. compile 'org.springframework.security:spring-security-config:4.0.2.RELEASE'
  97. compile "org.springframework:spring-websocket:${SpringVersion}"
  98. compile "org.springframework:spring-messaging:${SpringVersion}"
  99. compile 'de.danielbechler:java-object-diff:0.94'
  100. compile 'com.thoughtworks.xstream:xstream:1.4.8'
  101. compile 'xpp3:xpp3_min:1.1.4c'
  102. compile 'com.google.protobuf:protobuf-java:2.4.1'
  103. compile 'commons-pool:commons-pool:1.6'
  104. testCompile 'junit:junit:4.11'
  105. }
  106. task deploy(dependsOn: [copyLib, copyWebapp])
  107. }
  108. project(':shebao-web') {
  109. dependencies{
  110. compile project(':shebao-core')
  111. compile fileTree( dir: "lib", include: '*.jar' )
  112. compile 'org.apache.poi:poi-ooxml:3.13-beta1'
  113. compile 'net.sf.json-lib:json-lib:2.4:jdk15'
  114. compile "org.eclipse.jetty:jetty-jsp:${JettyVersion}"
  115. compile 'org.bouncycastle:bcprov-jdk16:1.45'
  116. compile 'com.aliyun.oss:aliyun-sdk-oss:3.9.1'
  117. testCompile 'junit:junit:4.11'
  118. }
  119. task deploy(dependsOn: [copyLib, copyWebapp])
  120. }
  121. project(':shebao-task') {
  122. dependencies{
  123. compile project(':shebao-core')
  124. compile fileTree( dir: "lib", include: '*.jar' )
  125. compile 'com.thoughtworks.xstream:xstream:1.4.8'
  126. compile 'xpp3:xpp3_min:1.1.4c'
  127. compile 'com.google.protobuf:protobuf-java:2.4.1'
  128. compile 'commons-pool:commons-pool:1.6'
  129. compile 'com.alipay.sdk:alipay-sdk-java:4.9.79.ALL'
  130. testCompile 'junit:junit:4.11'
  131. }
  132. task deploy(dependsOn: [copyLib, copyWebapp])
  133. }
  134. project(':shebao-open') {
  135. dependencies{
  136. compile project(':shebao-core')
  137. compile fileTree( dir: "lib", include: '*.jar' )
  138. compile 'io.github.openfeign.form:feign-form:3.4.0'
  139. compile 'io.github.openfeign.form:feign-form-spring:3.4.0'
  140. compile 'org.springframework.cloud:spring-cloud-starter-openfeign:2.0.1.RELEASE'
  141. testCompile 'junit:junit:4.11'
  142. }
  143. task deploy(dependsOn: [copyLib, copyWebapp])
  144. }
  145. project(':shebao-h5') {
  146. jar.exclude 'h5.properties'
  147. dependencies{
  148. compile project(':shebao-core')
  149. compile fileTree( dir: "lib", include: '*.jar' )
  150. compile 'org.aspectj:aspectjrt:1.8.6'
  151. compile 'org.aspectj:aspectjweaver:1.8.6'
  152. compile 'org.jdom:jdom2:2.0.6'
  153. compile 'org.apache.poi:poi-ooxml:3.13-beta1'
  154. compile 'jstl:jstl:1.2'
  155. compile "org.eclipse.jetty:jetty-jsp:${JettyVersion}"
  156. compile 'org.apache.httpcomponents:fluent-hc:4.5'
  157. compile 'org.apache.httpcomponents:httpmime:4.5'
  158. compile 'commons-collections:commons-collections:3.2.1'
  159. compile 'org.bouncycastle:bcprov-jdk15on:1.54'
  160. compile 'com.google.zxing:core:3.1.0'
  161. compile 'com.google.zxing:javase:3.1.0'
  162. compile 'com.belerweb:pinyin4j:2.5.1'
  163. testCompile 'junit:junit:4.11'
  164. }
  165. task deploy(dependsOn: [copyLib, copyWebapp])
  166. }
  167. project(':shebao-oa') {
  168. jar.exclude 'logback-test.xml'
  169. jar.exclude 'oa.properties'
  170. dependencies{
  171. compile project(':shebao-core')
  172. compile 'org.apache.poi:poi-ooxml:3.13-beta1'
  173. compile fileTree( dir: "lib", include: '*.jar' )
  174. compile "org.eclipse.jetty:jetty-jsp:${JettyVersion}"
  175. compile "org.apache.shiro:shiro-core:${ShiroVersion}"
  176. compile "org.apache.shiro:shiro-web:${ShiroVersion}"
  177. compile "org.apache.shiro:shiro-spring:${ShiroVersion}"
  178. compile 'org.apache.pdfbox:pdfbox:2.0.8'
  179. compile 'com.aliyun:aliyun-java-sdk-core:4.4.6'
  180. compile 'com.aliyun:aliyun-java-sdk-ocr:1.0.9'
  181. compile 'com.aliyun.oss:aliyun-sdk-oss:3.9.1'
  182. compile 'dom4j:dom4j:1.6.1'
  183. compile 'io.github.kostaskougios:cloning:1.10.3'
  184. compile 'commons-codec:commons-codec:1.10'
  185. testCompile 'junit:junit:4.11'
  186. }
  187. task deploy(dependsOn: [copyLib, copyWebapp])
  188. }