build.gradle 6.8 KB

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