-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
72 lines (57 loc) · 1.55 KB
/
Copy pathbuild.gradle
File metadata and controls
72 lines (57 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
apply plugin: 'java'
//apply plugin: 'application'
sourceCompatibility = 1.5
version = '1.0'
def outputDir = "$buildDir/output/";
//mainClassName = 'HelloServer'
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
/* Jetty */
compile "org.eclipse.jetty:jetty-server:9.2.5.v20141112"
compile "org.eclipse.jetty:jetty-webapp:9.2.5.v20141112"
compile "org.eclipse.jetty:jetty-io:9.2.5.v20141112"
/* Jersey */
compile "com.sun.jersey:jersey-core:1.19"
compile "com.sun.jersey:jersey-server:1.19"
compile "com.sun.jersey:jersey-servlet:1.19"
compile "com.sun.jersey.contribs:jersey-guice:1.19"
/* JSON */
compile "com.fasterxml.jackson.datatype:jackson-datatype-json-org:2.4.4"
/* JAX-RS */
//compile "javax.servlet:javax.servlet-api:3.1.0"
compile "javax.ws.rs:jsr311-api:0.11"
/* Guice */
compile "com.google.inject:guice:3.0"
//compile "com.google.inject.extensions:guice-servlet:3.0"
}
jar {
from configurations.runtime.collect {
zipTree(it)
}
manifest {
attributes "Main-Class": "com.awa.test.server.HelloServer"
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
}
task deploy << {
println "Preparing Deployment Directory...."
copy {
from configurations.compile
into "$outputDir/lib"
}
copy {
into "$outputDir/"
from "$buildDir/libs"
}
}
/*
uploadArchives {
repositories {
flatDir {
dirs 'deploy'
}
}
}*/