-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
88 lines (76 loc) · 3.17 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
plugins {
id 'java'
id 'groovy'
id 'org.springframework.boot' version '2.7.9'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
id 'jacoco'
id "org.sonarqube" version "4.0.0.2929"
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
springBoot.buildInfo()
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.liquibase:liquibase-core'
implementation 'org.springframework.boot:spring-boot-devtools'
implementation 'org.postgresql:postgresql'
implementation 'org.projectlombok:lombok'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springdoc:springdoc-openapi-ui:1.6.14'
implementation 'javax.annotation:javax.annotation-api:1.3.2'
implementation 'io.vavr:vavr:0.10.4'
implementation 'org.mapstruct:mapstruct:1.5.5.Final'
implementation 'org.springframework.boot:spring-boot-starter-amqp:3.0.4'
implementation 'org.springframework.cloud:spring-cloud-context:4.0.1'
implementation 'org.springframework.boot:spring-boot-starter-actuator:3.0.4'
implementation 'org.opensearch.client:opensearch-rest-high-level-client:2.8.0'
implementation 'com.fasterxml.jackson.core:jackson-core:2.15.2'
testImplementation 'junit:junit:4.13.1'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.5.Final'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'org.spockframework:spock-spring:2.3-groovy-4.0'
testImplementation 'org.apache.groovy:groovy-json:4.0.4'
testImplementation 'org.springframework.amqp:spring-rabbit-test'
testImplementation 'org.testcontainers:spock'
testImplementation 'org.testcontainers:postgresql'
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
}
dependencyManagement {
imports {
mavenBom "org.testcontainers:testcontainers-bom:1.18.3"
}
}
sonarqube {
properties {
property "sonar.sources", "src/main/java/"
property "sonar.tests", "src/test/groovy/"
property "sonar.exclusions", "build/generated-sources/**"
property "sonar.test.exclusions", "build/generated-test-sources/**"
property "sonar.coverage.jacoco.xmlReportPaths", "$buildDir/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.jacoco.reportPath", "$buildDir/jacoco/test.exec"
}
}
jacocoTestReport {
reports {
xml.required = true
}
executionData.from = fileTree(buildDir).include("/jacoco/*.exec")
}
test {
useJUnitPlatform()
systemProperties = [
'spring.config.location': 'classpath:/application.yml,classpath:/application-test.yml'
]
finalizedBy jacocoTestReport
}