This repository has been archived by the owner on Jan 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
90 lines (76 loc) · 2.53 KB
/
build.gradle.kts
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
89
90
plugins {
alias(libs.plugins.micronaut.minimal.library)
alias(libs.plugins.frogdevelopment.version)
alias(libs.plugins.frogdevelopment.publish)
alias(libs.plugins.frogdevelopment.deploy)
alias(libs.plugins.sonar)
jacoco
}
repositories {
mavenCentral()
}
dependencies {
annotationProcessor(mn.lombok)
annotationProcessor(mn.micronaut.inject.java)
compileOnly(mn.lombok)
compileOnly(mn.snakeyaml)
implementation(mn.micronaut.jackson.databind)
implementation(mn.micronaut.serde.jackson)
implementation(mn.micronaut.discovery.client)
implementation(mn.micronaut.reactor)
implementation(mn.guava)
// ----------- TESTS -----------
testAnnotationProcessor(mn.lombok)
testAnnotationProcessor(mn.micronaut.inject.java)
testCompileOnly(mn.lombok)
testRuntimeOnly(mn.micronaut.serde.jackson)
testRuntimeOnly(mn.snakeyaml)
testImplementation(mn.logback.classic)
testImplementation(mn.assertj.core)
testImplementation(mn.junit.jupiter.params)
testImplementation(mn.micronaut.http.client)
testImplementation(mn.mockito.junit.jupiter)
testImplementation(mn.testcontainers.consul)
testImplementation(libs.commons.lang3)
testImplementation(libs.awaitility)
testImplementation(libs.testcontainers.junit5)
}
micronaut {
testRuntime("junit5")
processing {
incremental(true)
annotations("com.frogdevelopment.micronaut.consul.*")
}
}
jacoco {
toolVersion = libs.versions.tools.jacoco.get()
}
tasks {
named<Test>("test") {
reports {
html.required.set(false)
}
}
named<JacocoReport>("jacocoTestReport") {
reports {
xml.required.set(true)
csv.required.set(false)
html.required.set(false)
}
}
}
sonar {
properties {
property("sonar.projectKey", "FrogDevelopment_micronaut-consul-watcher")
property("sonar.organization", "frogdevelopment")
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")
property("sonar.sources", "src/main/")
property("sonar.tests", "src/test/")
property("sonar.inclusions", "src/main/**/*")
property("sonar.test.exclusions", "src/test/**/*")
property("sonar.pullrequest.provider", "github")
property("sonar.pullrequest.github.endpoint", "https://api.github.com/")
}
}