build.gradle 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. mavenCentral()
  12. }
  13. configurations {
  14. all*.exclude group: 'commons-logging', module: 'commons-logging'
  15. }
  16. }
  17. project(':sp-core') {
  18. jar.exclude 'logback-test.xml'
  19. jar.exclude 'config.properties'
  20. jar.exclude 'env.properties'
  21. dependencies{
  22. compile fileTree( dir: "lib", include: '*.jar' )
  23. compile 'org.slf4j:slf4j-api:1.7.21'
  24. compile 'org.slf4j:jcl-over-slf4j:1.7.21'
  25. compile 'org.slf4j:jul-to-slf4j:1.7.21'
  26. compile 'org.slf4j:log4j-over-slf4j:1.7.21'
  27. compile 'ch.qos.logback:logback-classic:1.1.7'
  28. compile 'com.fasterxml.jackson.core:jackson-databind:2.8.5'
  29. compile 'com.google.guava:guava:20.0'
  30. compile 'org.javassist:javassist:3.22.0-CR1'
  31. compile "org.springframework:spring-aspects:${SpringVersion}"
  32. compile "org.springframework:spring-context:${SpringVersion}"
  33. compile "org.springframework:spring-context-support:${SpringVersion}"
  34. compile "org.springframework:spring-jdbc:${SpringVersion}"
  35. compile "org.springframework:spring-web:${SpringVersion}"
  36. compile "org.springframework:spring-webmvc:${SpringVersion}"
  37. compile "org.eclipse.jetty:jetty-server:${JettyVersion}"
  38. compile "org.eclipse.jetty:jetty-webapp:${JettyVersion}"
  39. compile "org.eclipse.jetty:jetty-annotations:${JettyVersion}"
  40. compile 'mysql:mysql-connector-java:5.1.35'
  41. compile 'org.reflections:reflections:0.9.10'
  42. compile 'redis.clients:jedis:2.7.3'
  43. compile 'org.apache.httpcomponents:httpclient:4.5.2'
  44. compile 'commons-beanutils:commons-beanutils:1.8.3'
  45. compile 'org.apache.commons:commons-lang3:3.5'
  46. compile 'joda-time:joda-time:2.9.6'
  47. compile 'com.alibaba:druid:1.0.27'
  48. compile 'org.mozilla:rhino:1.7.7'
  49. compile 'javax.xml.bind:jaxb-api:2.2.12'
  50. compile 'com.alibaba:fastjson:1.2.20'
  51. compile 'commons-pool:commons-pool:1.6'
  52. compile 'commons-fileupload:commons-fileupload:1.3.2'
  53. compile 'commons-collections:commons-collections:3.2.2'
  54. compile 'org.bouncycastle:bcprov-jdk16:1.45'
  55. compile 'commons-codec:commons-codec:1.10'
  56. compile 'org.hibernate:hibernate-validator:5.2.1.Final'
  57. compile 'javax.el:javax.el-api:3.0.1-b06'
  58. compile 'com.google.zxing:core:3.1.0'
  59. compile 'com.google.zxing:javase:3.1.0'
  60. compile 'javax.mail:mail:1.5.0-b01'
  61. compile 'org.apache.poi:poi-ooxml:4.0.1'
  62. compile ('com.alibaba:dubbo:2.5.4'){exclude(module: 'spring')}
  63. testCompile "org.springframework:spring-test:${SpringVersion}"
  64. testCompile 'junit:junit:4.11'
  65. }
  66. task copyLib(type: Sync, dependsOn: jar) {
  67. from configurations.compile
  68. from jar.archivePath
  69. into 'build/deploy'
  70. }
  71. task copyWebapp(type: Sync) {
  72. from 'src/main/webapp'
  73. into 'build/deploy/webapp'
  74. }
  75. task deploy(dependsOn: [copyLib, copyWebapp])
  76. }