build.gradle 841 B

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