-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
73 lines (60 loc) · 1.91 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
70
71
72
buildscript {
dependencies {
// Force guava 23.1 because of conflicts between spotbugs and docker plugins
classpath 'com.google.guava:guava:23.1-jre'
}
}
plugins {
id 'org.springframework.boot' version '2.1.8.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'com.github.spotbugs' version '2.0.1'
id 'com.palantir.docker' version '0.22.1'
id 'war'
id 'idea'
id 'eclipse'
}
group = 'de.cqrity'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
bootRun {
main = 'de.cqrity.vulnerapp.Vulnerapp'
}
bootWar {
excludeDevtools = true
}
spotbugs {
ignoreFailures = true
}
tasks.withType(com.github.spotbugs.SpotBugsTask) {
reports {
xml.enabled true
xml.withMessages true
}
}
docker {
dependsOn bootWar
name "${project.group}/${bootWar.baseName}"
files bootWar.archivePath, 'assets'
buildArgs(['WAR_FILE': "${bootWar.archiveName}"])
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.security:spring-security-taglibs'
implementation 'org.apache.tomcat.embed:tomcat-embed-jasper'
implementation 'commons-codec:commons-codec:1.10'
implementation 'com.google.zxing:javase:3.3.0'
implementation 'org.owasp.esapi:esapi:2.1.0.1'
implementation 'org.owasp.encoder:encoder:1.2.1'
implementation 'org.owasp.encoder:encoder-jsp:1.2.1'
implementation 'javax.servlet:jstl:1.2'
implementation 'com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20170515.1'
implementation 'com.google.guava:guava:23.0'
implementation 'org.glassfish.jaxb:jaxb-runtime:2.3.1'
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
implementation 'org.hsqldb:hsqldb'
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.10.1'
}