build.gradle 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. version = '1.0'
  7. sourceCompatibility = 1.8
  8. targetCompatibility = 1.8
  9. [compileJava, compileTestJava]*.options*.encoding = "UTF-8"
  10. repositories {
  11. //maven { url "http://192.168.2.199:8081/nexus/content/groups/public/" }
  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(':brain-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 'ch.qos.logback:logback-classic:1.1.7'
  36. compile 'com.fasterxml.jackson.core:jackson-databind:2.8.5'
  37. compile 'com.google.guava:guava:20.0'
  38. compile 'org.javassist:javassist:3.22.0-CR1'
  39. compile "org.springframework:spring-aspects:${SpringVersion}"
  40. compile "org.springframework:spring-context:${SpringVersion}"
  41. compile "org.springframework:spring-context-support:${SpringVersion}"
  42. compile "org.springframework:spring-jdbc:${SpringVersion}"
  43. compile "org.springframework:spring-web:${SpringVersion}"
  44. compile "org.springframework:spring-webmvc:${SpringVersion}"
  45. compile "org.eclipse.jetty:jetty-server:${JettyVersion}"
  46. compile "org.eclipse.jetty:jetty-webapp:${JettyVersion}"
  47. compile 'mysql:mysql-connector-java:5.1.35'
  48. compile 'org.reflections:reflections:0.9.10'
  49. compile 'redis.clients:jedis:2.7.3'
  50. compile 'org.apache.httpcomponents:httpclient:4.5.2'
  51. compile 'commons-beanutils:commons-beanutils:1.8.3'
  52. compile 'org.apache.commons:commons-lang3:3.5'
  53. compile 'joda-time:joda-time:2.9.6'
  54. compile 'com.alibaba:druid:1.0.27'
  55. compile 'org.mozilla:rhino:1.7.7'
  56. compile 'javax.xml.bind:jaxb-api:2.2.12'
  57. compile 'com.alibaba:fastjson:1.2.20'
  58. compile 'commons-pool:commons-pool:1.6'
  59. compile 'commons-fileupload:commons-fileupload:1.3.2'
  60. compile 'org.bouncycastle:bcprov-jdk16:1.45'
  61. compile 'commons-codec:commons-codec:1.10'
  62. compile 'org.apache.poi:poi-ooxml:3.13-beta1'
  63. testCompile 'junit:junit:4.11'
  64. }
  65. task deploy(dependsOn: [copyLib, copyWebapp])
  66. }
  67. project(':brain-logic') {
  68. dependencies{
  69. compile project(':brain-core')
  70. compile fileTree( dir: "lib", include: '*.jar' )
  71. compile 'io.springfox:springfox-swagger2:2.6.0'
  72. testCompile 'junit:junit:4.11'
  73. }
  74. task deploy(dependsOn: [copyLib, copyWebapp])
  75. }
  76. project(':brain-wechat') {
  77. dependencies{
  78. compile project(':brain-core')
  79. compile fileTree( dir: "lib", include: '*.jar' )
  80. testCompile 'junit:junit:4.11'
  81. }
  82. task deploy(dependsOn: [copyLib, copyWebapp])
  83. }
  84. project(':brain-admin') {
  85. dependencies{
  86. compile project(':brain-core')
  87. compile fileTree( dir: "lib", include: '*.jar' )
  88. compile "org.eclipse.jetty:jetty-jsp:${JettyVersion}"
  89. compile 'org.apache.shiro:shiro-all:1.2.3'
  90. testCompile 'junit:junit:4.11'
  91. }
  92. task deploy(dependsOn: [copyLib, copyWebapp])
  93. }
  94. project(':brain-task') {
  95. dependencies{
  96. compile project(':brain-core')
  97. compile fileTree( dir: "lib", include: '*.jar' )
  98. testCompile 'junit:junit:4.11'
  99. }
  100. task deploy(dependsOn: [copyLib, copyWebapp])
  101. }