added client and server REST support
This commit is contained in:
32
build.gradle
32
build.gradle
@@ -1,14 +1,24 @@
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'war'
|
||||
|
||||
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
version = '1.0'
|
||||
|
||||
logging.captureStandardOutput LogLevel.INFO
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
}
|
||||
|
||||
test {
|
||||
testLogging {
|
||||
exceptionFormat = 'full'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testCompile group: 'junit', name: 'junit', version: '4.11'
|
||||
compile 'org.apache.commons:commons-compress:1.9'
|
||||
@@ -16,8 +26,30 @@ dependencies {
|
||||
compile 'javax:javaee-api:7.0'
|
||||
compile 'commons-io:commons-io:2.4'
|
||||
testCompile 'com.thoughtworks.xstream:xstream:1.4.8'
|
||||
testCompile 'org.jboss.resteasy:resteasy-jaxrs:3.0.11.Final'
|
||||
testCompile 'org.jboss.resteasy:resteasy-client:3.0.11.Final'
|
||||
testCompile 'org.jboss.resteasy:resteasy-jackson-provider:3.0.11.Final'
|
||||
testCompile 'org.jboss.resteasy:resteasy-jaxb-provider:3.0.11.Final'
|
||||
|
||||
testCompile files('/opt/wildfly/bin/client/jboss-client.jar')
|
||||
|
||||
}
|
||||
|
||||
task deployWildfly(dependsOn: 'war') << {
|
||||
'/opt/wildfly/bin/jboss-cli.sh --connect --user=admin --password=qwerty --command="deploy build/libs/jpacrepo-1.0.war --force"'.execute().waitFor()
|
||||
}
|
||||
|
||||
// client.jar
|
||||
task clientJar(type: Jar) {
|
||||
from(sourceSets.main.output) {
|
||||
archiveName project.name + "-client.jar"
|
||||
include "model/**"
|
||||
include "pacbase/**"
|
||||
}
|
||||
}
|
||||
|
||||
// server.jar
|
||||
task serverJar(type: Jar) {
|
||||
from(sourceSets.main.output) {
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user