build.gradle 902 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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-param') {
  18. dependencies{
  19. compile project(':sp-core')
  20. compile fileTree( dir: "lib", include: '*.jar' )
  21. testCompile "org.springframework:spring-test:${SpringVersion}"
  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. }