build.gradle 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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.7
  8. targetCompatibility = 1.7
  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(':sales-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 'javax.mail:mail:1.5.0-b01'
  37. compile 'com.fasterxml.jackson.core:jackson-databind:2.8.5'
  38. compile 'com.google.guava:guava:20.0'
  39. compile 'org.javassist:javassist:3.22.0-CR1'
  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.2'
  52. compile 'commons-beanutils:commons-beanutils:1.8.3'
  53. compile 'org.apache.commons:commons-lang3:3.5'
  54. compile 'joda-time:joda-time:2.9.6'
  55. compile 'com.alibaba:druid:1.0.27'
  56. compile 'org.mozilla:rhino:1.7.7'
  57. compile 'javax.xml.bind:jaxb-api:2.2.12'
  58. compile 'com.alibaba:fastjson:1.2.20'
  59. testCompile 'junit:junit:4.11'
  60. }
  61. task deploy(dependsOn: [copyLib, copyWebapp])
  62. }
  63. project(':sales-logic') {
  64. dependencies{
  65. compile project(':sales-core')
  66. compile fileTree( dir: "lib", include: '*.jar' )
  67. testCompile 'junit:junit:4.11'
  68. }
  69. task deploy(dependsOn: [copyLib, copyWebapp])
  70. }
  71. project(':sales-admin') {
  72. jar.exclude 'wechat4j.properties'
  73. dependencies{
  74. compile project(':sales-core')
  75. compile fileTree( dir: "lib", include: '*.jar' )
  76. compile "org.eclipse.jetty:jetty-jsp:${JettyVersion}"
  77. compile 'org.apache.shiro:shiro-all:1.2.3'
  78. compile 'com.thoughtworks.xstream:xstream:1.4.8'
  79. compile 'xpp3:xpp3_min:1.1.4c'
  80. compile 'com.google.protobuf:protobuf-java:2.4.1'
  81. compile 'commons-pool:commons-pool:1.6'
  82. testCompile 'junit:junit:4.11'
  83. }
  84. task deploy(dependsOn: [copyLib, copyWebapp])
  85. }