-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
88 lines (70 loc) · 2.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 'jacoco'
id 'idea'
id 'org.springframework.boot' version '2.3.2.RELEASE'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'com.google.cloud.tools.jib' version '2.4.0'
}
apply plugin: 'java'
apply plugin: 'io.spring.dependency-management'
sourceCompatibility = '1.14'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
ext {
junit5Version = '5.7.2'
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'org.springdoc:springdoc-openapi-ui:1.5.9'
implementation 'io.micrometer:micrometer-registry-prometheus:1.7.0'
implementation 'ch.qos.logback:logback-classic:1.2.3'
implementation 'net.logstash.logback:logstash-logback-encoder:6.6'
implementation 'fi.solita.clamav:clamav-client:1.0.1'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation ('org.springframework.boot:spring-boot-starter-test'){
exclude group: 'org.junit.vintage'
}
testImplementation "org.junit.jupiter:junit-jupiter-params:$junit5Version"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit5Version"
testImplementation("org.springframework.boot:spring-boot-starter-tomcat")
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit5Version"
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacoco {
toolVersion = "0.8.5"
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
reports {
xml.enabled true
html.enabled false
}
}
configurations {
jib {
from{ image 'openjdk:14-jdk-alpine' }
to {
image "audig/${rootProject.name}"
auth {
username System.getenv("DOCKER_USERNAME")
password System.getenv("DOCKER_PASSWORD")
}
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
}