-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (65 loc) · 2.6 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
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.9-SNAPSHOT' // cant go beyond this until Java 17
id 'io.spring.dependency-management' version '1.1.0'
id 'jacoco'
id "org.sonarqube" version "5.0.0.4638"
id "org.owasp.dependencycheck" version "8.3.1"
}
group = 'com.ldiamond'
version = '4.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.5'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.13.0'
implementation group: 'com.github.librepdf', name: 'openpdf', version: '1.3.30'
implementation("com.google.guava:guava:32.1.2-jre")
testImplementation 'com.tngtech.archunit:archunit-junit5:1.1.0'
testImplementation group: 'org.mockito', name: 'mockito-junit-jupiter', version: '4.11.0' // cant go beyond this until Java 11
testImplementation 'com.ldiamond:architectureunittests:0.1.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
}
}