-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
80 lines (70 loc) · 2.54 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
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.18-SNAPSHOT'
id 'io.spring.dependency-management' version '1.1.7'
id 'jacoco'
id "org.sonarqube" version "6.0.1.5171"
id "org.owasp.dependencycheck" version "12.0.0"
}
group = 'com.ldiamond'
version = '7.0.0-SNAPSHOT'
sourceCompatibility = '11'
targetCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/snapshot' }
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'org.springframework:spring-web'
implementation group: 'commons-codec', name: 'commons-codec'
implementation group: 'org.knowm.xchart', name: 'xchart', version: '3.8.8'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0'
implementation group: 'com.github.librepdf', name: 'openpdf', version: '2.0.3'
implementation("com.google.guava:guava:33.3.0-jre")
testImplementation 'org.mockito:mockito-junit-jupiter:5.15.2'
testImplementation 'com.ldiamond:architectureunittests:2.0.0'
}
tasks.named('test') {
useJUnitPlatform()
}
sonarqube {
properties {
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.projectKey", "larrydiamond_sqgraph"
property "sonar.organization", "larrydiamond-github"
property "sonar.sourceEncoding", "UTF-8"
property "sonar.scm.disabled", "true"
property "sonar.sources", "src/main/java/com/ldiamond/sqgraph"
property "sonar.coverage.exclusions",
"src/main/java/com/ldiamond/sqgraph/Config.java,src/main/java/com/ldiamond/sqgraph/SearchHistory.java,src/main/java/com/ldiamond/sqgraph/ValidationResult.java,src/main/java/com/ldiamond/sqgraph/MetricsResults.java"
property "sonar.coverage.jacoco.xmlReportPaths","build/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.jacoco.reportPaths","build/reports/jacoco/test/jacocoTestReport.xml"
}
}
test {
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
reports {
xml.required = true
csv.required = true
}
}
dependencyCheck {
nvd {
apiKey = System.getenv('NVD_KEY')
delay = 16000
}
}