-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·52 lines (39 loc) · 1.04 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
apply plugin: "java"
apply plugin: "war"
apply plugin: "eclipse-wtp"
apply plugin: 'findbugs'
webAppDirName = 'WebContent'
repositories {
mavenCentral()
}
configurations{
common
}
dependencies {
providedCompile 'javax.servlet:javax.servlet-api:3.1.0'
compile fileTree(dir: 'WebContent/WEB-INF/lib/', include: '*.jar')
}
eclipse {
classpath {
file {
withXml {
xml -> xml.asNode().classpathentry.findAll{
it.@path == 'org.eclipse.jst.j2ee.internal.web.container'
}.each {
it.parent().remove(it)
}
def attrs = [kind : 'con', path : 'org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0']
new Node(xml.asNode(), 'classpathentry', attrs)
}
}
}
}
// testing related activities -----------------
tasks.withType(FindBugs) {
effort = "default"
reportLevel = "high"
reports {
xml.enabled = false
html.enabled = true
}
}