forked from SasanLabs/VulnerableApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
99 lines (79 loc) · 2.8 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.2.0.RELEASE")
}
}
//Community Plugins
plugins {
id("com.diffplug.spotless") version "5.6.1"
id("com.google.cloud.tools.jib") version "2.6.0"
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
bootJar {
baseName = 'VulnerableApp'
version = '1.0.0'
}
configurations {
all {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
}
repositories {
mavenCentral()
gradlePluginPortal()
mavenLocal()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
spotless {
java {
// Don't enforce the license, just the format.
clearSteps()
googleJavaFormat().aosp()
}
format 'javascript', {
target 'src/main/resources/**/*.js'
prettier().config(['filepath': 'file.js'])
}
}
jib {
from {
image = 'openjdk:8-jre-alpine'
}
to {
image = 'sasanlabs/owasp-vulnerableapp:unreleased'
}
}
dependencies {
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web'
// https://mvnrepository.com/artifact/org.mockito/mockito-core
testImplementation group: 'org.mockito', name: 'mockito-core', version: '3.5.13'
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter', version: '5.7.0'
// https://mvnrepository.com/artifact/org.assertj/assertj-core
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.17.2'
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: '2.3.1.RELEASE'
runtimeOnly group:'com.h2database', name:'h2', version: '1.3.176'
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.8'
//Log4j Dependencies
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-log4j2'
// https://mvnrepository.com/artifact/org.json/json
implementation group: 'org.json', name: 'json', version: '20190722'
//https://mvnrepository.com/artifact/com.nimbusds/nimbus-jose-jwt
implementation group: 'com.nimbusds', name: 'nimbus-jose-jwt', version: '8.3'
// https://mvnrepository.com/artifact/commons-io/commons-io
implementation group: 'commons-io', name: 'commons-io', version: '2.7'
implementation group: 'io.github.sasanlabs', name: 'facade-schema', version: '1.0.1'
}
test {
useJUnitPlatform()
}