forked from system-sekkei/library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (49 loc) · 1.7 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.1'
id 'io.spring.dependency-management' version '1.1.0'
id 'org.dddjava.jig-gradle-plugin' version '2023.6.3'
id "org.sonarqube" version "4.2.1.3168"
id "jacoco"
}
sourceCompatibility = '17'
sourceSets {
main {
resources.srcDirs = ["src/main/java", "src/main/resources"]
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
runtimeOnly 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.2'
testImplementation 'com.github.irof:jig-erd:latest.release'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'org.postgresql:postgresql'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
runtimeOnly 'io.micrometer:micrometer-tracing-bridge-otel'
runtimeOnly 'io.opentelemetry:opentelemetry-exporter-zipkin'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
}
classes.mustRunAfter(clean)
jigReports.dependsOn(clean, classes)
sonar {
properties {
property "sonar.projectKey", "system-sekkei_library"
property "sonar.organization", "system-sekkei"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.junit.reportPaths", "build/test-results/test/TEST-*.xml"
}
}
jacocoTestReport {
reports {
xml.required = true
}
}