-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
75 lines (58 loc) · 1.63 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
plugins {
id 'org.springframework.boot' version '2.7.4'
id 'io.spring.dependency-management' version '1.0.14.RELEASE'
id 'java'
id "net.ltgt.errorprone" version "2.0.2"
id "org.owasp.dependencycheck" version "7.2.1"
id "jacoco"
id "org.sonarqube" version "3.4.0.2513"
}
group = 'de.qaware.cloud'
version = '1.0.0'
sourceCompatibility = '17'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springdoc:springdoc-openapi-webmvc-core:1.6.11'
// for demo purposes to trigger vulnerable library
runtimeOnly 'org.apache.logging.log4j:log4j-api:2.12.1'
runtimeOnly 'org.apache.logging.log4j:log4j-core:2.12.1'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
errorprone "com.google.errorprone:error_prone_core:2.15.0"
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.assertj:assertj-core:3.23.1'
}
tasks.named('test') {
useJUnitPlatform()
}
tasks.named("bootBuildImage") {
imageName = "${project.name}:${project.version}"
}
tasks.named("compileJava").configure {
options.errorprone.enabled = true
}
dependencyCheck {
cveValidForHours=24
failOnError=true
}
jacocoTestReport {
reports {
xml.enabled true
}
}
sonarqube {
properties {
property "sonar.projectKey", "lreimer_secure-devex22"
property "sonar.organization", "lreimer"
property "sonar.host.url", "https://sonarcloud.io"
}
}