-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
73 lines (63 loc) · 2.36 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'org.springframework.boot' version '3.2.3'
id 'io.spring.dependency-management' version '1.1.4'
id 'org.jetbrains.kotlin.jvm' version '1.9.22'
id 'org.jetbrains.kotlin.plugin.spring' version '1.9.22'
id 'org.jetbrains.kotlinx.kover' version '0.7.6'
}
group = 'br.com'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '21'
}
repositories {
mavenCentral()
}
ext {
set('springCloudVersion', "2023.0.0")
set("coroutinesVersion", "1.8.0")
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
implementation group: 'org.springframework', name: 'spring-aop', version: '6.1.5'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
implementation 'org.jetbrains.kotlin:kotlin-reflect'
implementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: '1.8.0'
implementation group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.12.5'
implementation group: 'io.jsonwebtoken', name: 'jjwt-impl', version: '0.12.5'
implementation group: 'io.jsonwebtoken', name: 'jjwt-jackson', version: '0.12.5'
implementation group: 'net.logstash.logback', name: 'logstash-logback-encoder', version: '7.4'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation group: 'io.mockk', name: 'mockk-jvm', version: '1.13.10'
testImplementation group: 'io.kotest', name: 'kotest-runner-junit5-jvm', version: '5.8.1'
testImplementation group: 'io.kotest.extensions', name: 'kotest-extensions-spring', version: '1.1.3'
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
tasks.withType(KotlinCompile) {
kotlinOptions {
freeCompilerArgs += '-Xjsr305=strict'
jvmTarget = '21'
}
}
tasks.named('test') {
useJUnitPlatform()
}
koverReport {
filters {
includes {
packages("br.com.cinemagazine")
}
excludes {
packages("br.com.cinemagazine.constants", "br.com.cinemagazine.dto", "br.com.cinemagazine.documents")
classes("br.com.cinemagazine.ApiCineMagazineApplication", "br.com.cinemagazine.ApiCineMagazineApplicationKt")
}
}
}