-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (52 loc) · 1.85 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
plugins {
id 'org.springframework.boot' version '2.7.0'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id "io.freefair.lombok" version "6.4.3"
id 'java'
id 'com.avast.gradle.docker-compose' version "0.16.4"
id 'jacoco'
}
group = 'com.zugazagoitia.knag'
//Must be formatted following the RegEx: /version\s*=\s*'\S+'/g
version = '0.4.2'
sourceCompatibility = '17'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
jacocoTestReport {
reports {
xml.required = true
csv.required = false
}
dependsOn test // tests are required to run before generating the report
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
implementation 'org.springframework.boot:spring-boot-starter-data-rest'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation "org.springframework.boot:spring-boot-starter-security"
implementation "org.springframework.boot:spring-boot-starter-validation"
implementation 'org.springdoc:springdoc-openapi-data-rest:1.6.9'
implementation 'org.springdoc:springdoc-openapi-ui:1.6.9'
implementation 'com.auth0:java-jwt:3.19.2'
implementation 'net.sargue:mailgun:1.10.0'
implementation 'jakarta.annotation:jakarta.annotation-api:2.1.0' //Needed for MailGun
implementation 'org.glassfish.jersey.inject:jersey-hk2:3.0.4'
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
runtimeOnly 'io.micrometer:micrometer-registry-prometheus'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'de.flapdoodle.embed:de.flapdoodle.embed.mongo'
}
bootJar{
destinationDirectory = file(project.buildDir)
}
tasks.named('test') {
useJUnitPlatform()
finalizedBy jacocoTestReport
}