-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
106 lines (86 loc) · 2.71 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
buildscript {
configurations.maybeCreate("pitest")
dependencies {
classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.4.6'
pitest 'org.pitest:pitest-junit5-plugin:0.14'
}
}
plugins {
id 'org.springframework.boot' version '2.4.4'
id 'java'
id "jacoco"
}
apply plugin: "info.solidsoft.pitest"
apply plugin: 'io.spring.dependency-management'
group 'com.github.mikesafonov'
version '1.2.0'
sourceCompatibility = 1.8
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
wrapper {
distributionType = Wrapper.DistributionType.ALL
gradleVersion = '5.5.1'
}
bootJar {
mainClassName = 'com.github.mikesafonov.prometheus.telegram.Application'
archiveFileName = "prometheus-telegram-alert.jar"
launchScript()
}
springBoot {
buildInfo {
properties {
additional = ["version": project.version]
}
}
}
repositories {
mavenCentral()
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:Hoxton.SR10"
}
}
configurations {
compile.exclude module: 'spring-boot-starter-logging'
}
ext['log4j2.version'] = '2.15.0'
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-log4j2'
implementation("org.springframework.cloud:spring-cloud-starter-vault-config")
implementation 'com.github.mikesafonov:spring-boot-starter-prometheus-alerts:1.0.0'
compileOnly 'org.springframework.boot:spring-boot-configuration-processor'
implementation 'org.apache.logging.log4j:log4j-web'
implementation 'com.vdurmont:emoji-java:5.1.1'
compileOnly "org.projectlombok:lombok"
annotationProcessor "org.projectlombok:lombok"
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude group: "junit", module: "junit"
exclude module: "junit-vintage-engine"
}
testImplementation("org.mockito:mockito-core")
}
jacoco {
toolVersion = "0.8.3"
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport, "pitest"
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
}
}
pitest {
testPlugin = "junit5"
targetClasses = ['com.github.mikesafonov.prometheus.telegram.dto.*', 'com.github.mikesafonov.prometheus.telegram.service.*']
excludedClasses = ['com.github.mikesafonov.prometheus.telegram.config.*', 'com.github.mikesafonov.prometheus.telegram.controllers.*']
threads = 4
outputFormats = ['HTML', 'XML']
enableDefaultIncrementalAnalysis = true
timestampedReports = false
historyInputLocation = ".pitest/pitHistory.txt"
historyOutputLocation = ".pitest/pitHistory.txt"
}