build.gradle 1009 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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-plugin-sms') {
  18. dependencies{
  19. compile project(':sp-core')
  20. compile fileTree( dir: "lib", include: '*.jar' )
  21. compile 'com.thoughtworks.xstream:xstream:1.4.8'
  22. compile 'xpp3:xpp3_min:1.1.4c'
  23. compile 'com.google.protobuf:protobuf-java:2.4.1'
  24. compile 'org.json:json:20090211'
  25. testCompile 'junit:junit:4.11'
  26. }
  27. task copyLib(type: Sync, dependsOn: jar) {
  28. from configurations.compile
  29. from jar.archivePath
  30. into 'build/deploy'
  31. }
  32. task copyWebapp(type: Sync) {
  33. from 'src/main/webapp'
  34. into 'build/deploy/webapp'
  35. }
  36. task deploy(dependsOn: [copyLib, copyWebapp])
  37. }