build.gradle 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. def SpringVersion = '4.3.10.RELEASE'
  2. def JettyVersion = '9.2.14.v20151106'
  3. def ShiroVersion = '1.4.1'
  4. subprojects {
  5. apply plugin: 'java'
  6. apply plugin: 'eclipse'
  7. version = '1.0'
  8. sourceCompatibility = 1.8
  9. targetCompatibility = 1.8
  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 copyLibDir(type: Sync, dependsOn: jar) {
  18. from configurations.compile
  19. from jar.archivePath
  20. into 'build/deploy'
  21. }
  22. task copyWebappDir(type: Sync) {
  23. from 'src/main/webapp'
  24. into 'build/deploy/webapp'
  25. }
  26. }
  27. project(':bore-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.21'
  34. compile 'org.slf4j:jcl-over-slf4j:1.7.21'
  35. compile 'org.slf4j:jul-to-slf4j:1.7.21'
  36. compile 'org.slf4j:log4j-over-slf4j:1.7.21'
  37. compile 'ch.qos.logback:logback-classic:1.1.7'
  38. compile 'com.fasterxml.jackson.core:jackson-databind:2.8.5'
  39. compile 'com.google.guava:guava:20.0'
  40. compile 'org.javassist:javassist:3.22.0-CR1'
  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 "org.eclipse.jetty:jetty-annotations:${JettyVersion}"
  50. compile "org.eclipse.jetty:jetty-jmx:${JettyVersion}"
  51. compile 'mysql:mysql-connector-java:5.1.35'
  52. compile 'org.reflections:reflections:0.9.10'
  53. compile 'redis.clients:jedis:2.7.3'
  54. compile 'org.apache.httpcomponents:httpclient:4.5.2'
  55. compile 'commons-beanutils:commons-beanutils:1.8.3'
  56. compile 'org.apache.commons:commons-lang3:3.5'
  57. compile 'joda-time:joda-time:2.9.6'
  58. compile 'com.alibaba:druid:1.0.27'
  59. compile 'org.mozilla:rhino:1.7.7'
  60. compile 'javax.xml.bind:jaxb-api:2.2.12'
  61. compile 'com.alibaba:fastjson:1.2.20'
  62. compile 'commons-pool:commons-pool:1.6'
  63. compile 'commons-fileupload:commons-fileupload:1.3.2'
  64. compile 'commons-collections:commons-collections:3.2.2'
  65. compile 'org.bouncycastle:bcprov-jdk16:1.45'
  66. compile 'commons-codec:commons-codec:1.10'
  67. compile 'org.hibernate:hibernate-validator:5.2.1.Final'
  68. compile 'javax.el:javax.el-api:3.0.1-b06'
  69. compile 'com.google.zxing:core:3.1.0'
  70. compile 'com.google.zxing:javase:3.1.0'
  71. compile 'javax.mail:mail:1.5.0-b01'
  72. compile 'org.apache.poi:poi-ooxml:4.0.1'
  73. compile 'com.thoughtworks.xstream:xstream:1.4.8'
  74. compile 'xpp3:xpp3_min:1.1.4c'
  75. compile 'com.google.protobuf:protobuf-java:2.4.1'
  76. compile 'org.json:json:20090211'
  77. compile 'com.aliyun:aliyun-java-sdk-core:3.0.5'
  78. compile 'com.aliyun:aliyun-java-sdk-sts:2.1.6'
  79. compile 'com.aliyun.oss:aliyun-sdk-oss:2.5.0'
  80. compile 'com.aliyun.mns:aliyun-sdk-mns:1.1.8'
  81. compile 'net.coobird:thumbnailator:0.4.8'
  82. compile 'io.springfox:springfox-swagger2:2.7.0'
  83. compile 'org.projectlombok:lombok:1.18.12'
  84. annotationProcessor 'org.projectlombok:lombok:1.18.12'
  85. testCompile "org.springframework:spring-test:${SpringVersion}"
  86. testCompile 'junit:junit:4.11'
  87. }
  88. task deploy(dependsOn: [copyLibDir, copyWebappDir])
  89. }
  90. project(':bore-logic') {
  91. dependencies{
  92. compile project(':bore-core')
  93. compile fileTree( dir: "lib", include: '*.jar' )
  94. annotationProcessor 'org.projectlombok:lombok:1.18.12'
  95. testCompile "org.springframework:spring-test:${SpringVersion}"
  96. testCompile 'junit:junit:4.11'
  97. }
  98. task deploy(dependsOn: [copyLibDir, copyWebappDir])
  99. }
  100. project(':bore-admin') {
  101. dependencies{
  102. compile project(':bore-core')
  103. compile fileTree( dir: "lib", include: '*.jar' )
  104. compile 'jstl:jstl:1.2'
  105. compile "org.eclipse.jetty:jetty-jsp:${JettyVersion}"
  106. compile "org.apache.shiro:shiro-core:${ShiroVersion}"
  107. compile "org.apache.shiro:shiro-web:${ShiroVersion}"
  108. compile "org.apache.shiro:shiro-spring:${ShiroVersion}"
  109. annotationProcessor 'org.projectlombok:lombok:1.18.12'
  110. testCompile "org.springframework:spring-test:${SpringVersion}"
  111. testCompile 'junit:junit:4.11'
  112. }
  113. task deploy(dependsOn: [copyLibDir, copyWebappDir])
  114. }
  115. project(':bore-web') {
  116. dependencies{
  117. compile project(':bore-core')
  118. compile fileTree( dir: "lib", include: '*.jar' )
  119. compile 'jstl:jstl:1.2'
  120. compile "org.eclipse.jetty:jetty-jsp:${JettyVersion}"
  121. annotationProcessor 'org.projectlombok:lombok:1.18.12'
  122. testCompile "org.springframework:spring-test:${SpringVersion}"
  123. testCompile 'junit:junit:4.11'
  124. }
  125. task deploy(dependsOn: [copyLibDir, copyWebappDir])
  126. }
  127. project(':bore-task') {
  128. dependencies{
  129. compile project(':bore-core')
  130. compile fileTree( dir: "lib", include: '*.jar' )
  131. compile 'org.quartz-scheduler:quartz:2.2.2'
  132. compile 'org.jsoup:jsoup:1.10.2'
  133. compile 'com.aliyun:aliyun-java-sdk-core:3.0.5'
  134. compile 'com.aliyun:aliyun-java-sdk-sts:2.1.6'
  135. compile 'com.aliyun.oss:aliyun-sdk-oss:2.5.0'
  136. compile 'com.aliyun.mns:aliyun-sdk-mns:1.1.8'
  137. annotationProcessor 'org.projectlombok:lombok:1.18.12'
  138. testCompile "org.springframework:spring-test:${SpringVersion}"
  139. testCompile 'junit:junit:4.11'
  140. }
  141. task deploy(dependsOn: [copyLibDir, copyWebappDir])
  142. }