build.gradle 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 "org.eclipse.jetty:jetty-jmx:${JettyVersion}"
  41. compile 'mysql:mysql-connector-java:5.1.35'
  42. compile 'org.reflections:reflections:0.9.10'
  43. compile 'redis.clients:jedis:2.7.3'
  44. compile 'org.apache.httpcomponents:httpclient:4.5.2'
  45. compile 'commons-beanutils:commons-beanutils:1.8.3'
  46. compile 'org.apache.commons:commons-lang3:3.5'
  47. compile 'joda-time:joda-time:2.9.6'
  48. compile 'com.alibaba:druid:1.0.27'
  49. compile 'org.mozilla:rhino:1.7.7'
  50. compile 'javax.xml.bind:jaxb-api:2.2.12'
  51. compile 'com.alibaba:fastjson:1.2.20'
  52. compile 'commons-pool:commons-pool:1.6'
  53. compile 'commons-fileupload:commons-fileupload:1.3.2'
  54. compile 'commons-collections:commons-collections:3.2.2'
  55. compile 'org.bouncycastle:bcprov-jdk16:1.45'
  56. compile 'commons-codec:commons-codec:1.10'
  57. compile 'org.hibernate:hibernate-validator:5.2.1.Final'
  58. compile 'javax.el:javax.el-api:3.0.1-b06'
  59. compile 'com.google.zxing:core:3.1.0'
  60. compile 'com.google.zxing:javase:3.1.0'
  61. compile 'javax.mail:mail:1.5.0-b01'
  62. compile 'org.apache.poi:poi-ooxml:4.0.1'
  63. compile ('com.alibaba:dubbo:2.5.4'){exclude(module: 'spring')}
  64. testCompile "org.springframework:spring-test:${SpringVersion}"
  65. testCompile 'junit:junit:4.11'
  66. }
  67. task copyLib(type: Sync, dependsOn: jar) {
  68. from configurations.compile
  69. from jar.archivePath
  70. into 'build/deploy'
  71. }
  72. task copyWebapp(type: Sync) {
  73. from 'src/main/webapp'
  74. into 'build/deploy/webapp'
  75. }
  76. task deploy(dependsOn: [copyLib, copyWebapp])
  77. }