-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
98 lines (82 loc) · 3.1 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
91
92
93
94
95
96
97
98
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "3.2.5"
id("io.spring.dependency-management") version "1.1.4"
kotlin("jvm") version "1.9.23"
kotlin("plugin.spring") version "1.9.23"
id("org.jlleitschuh.gradle.ktlint") version "12.1.1"
kotlin("kapt") version "1.9.23"
id("org.jetbrains.kotlinx.kover") version "0.8.2"
}
group = "com.fork"
version = "0.0.1-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenCentral()
}
val springCloudVersion = "2023.0.1"
val swaggerVersion = "2.2.0"
val mockkVersion = "1.13.11"
val jwtVersion = "0.11.5"
val kotlinLoggingVersion = "5.1.0"
val awsS3Version = "1.12.729"
val mapStructVersion = "1.5.5.Final"
val springMockkVersion = "4.0.2"
val bucket4jVersion = "8.10.1"
val jaxbVersion = "2.3.1"
dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-mongodb")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:$swaggerVersion")
implementation("org.springframework.cloud:spring-cloud-starter-openfeign")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-mail")
// Logging
implementation("io.github.oshai:kotlin-logging-jvm:$kotlinLoggingVersion")
// Jwt
implementation("io.jsonwebtoken:jjwt-api:$jwtVersion")
implementation("io.jsonwebtoken:jjwt-impl:$jwtVersion")
implementation("io.jsonwebtoken:jjwt-jackson:$jwtVersion")
// https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-s3
implementation("com.amazonaws:aws-java-sdk-s3:$awsS3Version")
implementation("javax.xml.bind:jaxb-api:$jaxbVersion")
// MapStruct
implementation("org.mapstruct:mapstruct:$mapStructVersion")
kapt("org.mapstruct:mapstruct-processor:$mapStructVersion")
kaptTest("org.mapstruct:mapstruct-processor:$mapStructVersion")
// rate limiter
implementation("com.bucket4j:bucket4j-core:$bucket4jVersion")
testImplementation("io.mockk:mockk:$mockkVersion")
testImplementation("com.ninja-squad:springmockk:$springMockkVersion")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
dependencyManagement {
imports {
mavenBom("org.springframework.cloud:spring-cloud-dependencies:$springCloudVersion")
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "21"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
kover {
reports {
filters {
excludes {
classes("**.*Config*", "**.*Application*", "**.*enum*")
}
}
}
}