-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (57 loc) · 1.47 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
plugins {
id 'war'
}
repositories {
jcenter()
}
dependencies {
providedCompile 'javax.servlet:javax.servlet-api:4.0.+'
providedCompile 'javax.servlet.jsp:javax.servlet.jsp-api:2.3.+'
runtime 'org.apache.taglibs:taglibs-standard-spec:1.2.5'
runtime 'org.apache.taglibs:taglibs-standard-impl:1.2.5'
runtime 'org.apache.taglibs:taglibs-standard-jstlel:1.2.5'
// owasp encoder
compile 'org.owasp.encoder:encoder:+'
compile 'org.owasp.encoder:encoder-jsp:+'
// spring framework
compile 'org.springframework:spring-webmvc:5.+'
compile 'org.springframework:spring-jdbc:5.+'
// log4j 2
compile 'org.apache.logging.log4j:log4j-api:2.+'
compile 'org.apache.logging.log4j:log4j-core:2.+'
}
// clear
task clear {
doLast {
delete 'build','dist'
}
}
// make dist/WEB-INF/classes
task makeclasses(dependsOn:compileJava, type:Copy) {
from 'build/classes/java/main'
from 'src/main/resources'
into 'dist/WEB-INF/classes'
}
// make dist/WEB-INF/lib
task makelib(type:Sync) {
from configurations.runtime.minus(configurations.providedCompile)
into 'dist/WEB-INF/lib'
}
// make dist web
task makeweb(type: Copy) {
from 'src/main/webapp'
into 'dist'
}
// make dist full
task makedist(dependsOn: [makeclasses, makelib, makeweb])
// dist web
task distweb(dependsOn:makeweb, type:Copy) {
from ('dist') {exclude 'META-INF', 'WEB-INF' }
from ('dist') {include 'WEB-INF/jsp/**' }
into "$appDir"
}
// dist full
task dist(dependsOn:makedist, type:Sync) {
from 'dist'
into "$appDir"
}