-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
48 lines (33 loc) · 1.54 KB
/
build.gradle
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
apply plugin: 'java'
apply plugin: 'eclipse-wtp'
apply plugin: 'war'
sourceCompatibility = 1.8
targetCompatibility = 1.8
webAppDirName = 'web'
dependencies {
compileOnly group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
compile group: 'javax.ws.rs', name: 'javax.ws.rs-api', version: '2.0'
compile group: 'org.glassfish.jersey.containers', name: 'jersey-container-servlet-core', version: '2.25.1'
compile group: 'org.glassfish.jersey.containers', name: 'jersey-container-servlet', version: '2.25.1'
compile group: 'org.glassfish.jersey.core', name: 'jersey-server', version: '2.25.1'
compile group: 'org.glassfish.jersey.media', name: 'jersey-media-json-jackson', version: '2.25.1'
compile group: 'org.glassfish.jersey.ext', name: 'jersey-bean-validation', version: '2.25.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.8.2'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.8.2'
}
repositories { mavenCentral() }
eclipse.project { natures 'org.eclipse.buildship.core.gradleprojectnature', 'org.eclipse.jdt.core.javanature' }
task copyJars(type: Copy) {
from configurations.compile
into ("web/WEB-INF/lib")
include('*.jar')
}
task deleteJars(type: Delete) {
delete fileTree("/web/WEB-INF/lib") { include '*.jar' }
}
eclipseClasspath.dependsOn copyJars
build.dependsOn deleteJars
build.dependsOn copyJars
assemble.dependsOn deleteJars
assemble.dependsOn copyJars
clean.dependsOn deleteJars