12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- def SpringVersion = '4.2.0.RELEASE'
- def JettyVersion = '9.2.14.v20151106'
- subprojects {
- apply plugin: 'java'
- apply plugin: 'eclipse'
-
- version = '1.0'
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
- [compileJava, compileTestJava]*.options*.encoding = "UTF-8"
-
- repositories {
- mavenCentral()
- }
- configurations {
- all*.exclude group: 'commons-logging', module: 'commons-logging'
- }
- }
- project(':sp-plugin-push') {
- dependencies{
- compile project(':sp-core')
- compile fileTree( dir: "lib", include: '*.jar' )
- compile 'com.thoughtworks.xstream:xstream:1.4.8'
- compile 'xpp3:xpp3_min:1.1.4c'
- compile 'com.google.protobuf:protobuf-java:2.4.1'
- compile 'org.json:json:20090211'
-
- testCompile 'junit:junit:4.11'
- }
- task copyLib(type: Sync, dependsOn: jar) {
- from configurations.compile
- from jar.archivePath
- into 'build/deploy'
- }
- task copyWebapp(type: Sync) {
- from 'src/main/webapp'
- into 'build/deploy/webapp'
- }
- task deploy(dependsOn: [copyLib, copyWebapp])
- }
|