build.gradle 875 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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-service-api') {
  18. dependencies{
  19. compile project(':sp-core')
  20. compile project(':sp-plugin-param')
  21. compile fileTree( dir: "lib", include: '*.jar' )
  22. testCompile 'junit:junit:4.11'
  23. }
  24. task copyLib(type: Sync, dependsOn: jar) {
  25. from configurations.compile
  26. from jar.archivePath
  27. into 'build/deploy'
  28. }
  29. task copyWebapp(type: Sync) {
  30. from 'src/main/webapp'
  31. into 'build/deploy/webapp'
  32. }
  33. task deploy(dependsOn: [copyLib, copyWebapp])
  34. }