-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
66 lines (53 loc) ยท 1.95 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot")
id("io.spring.dependency-management")
kotlin("plugin.jpa")
kotlin("plugin.spring")
kotlin("jvm")
}
repositories {
mavenCentral()
}
dependencies {
// Kotlin
implementation("org.jetbrains.kotlin:kotlin-reflect")
// SpringBoot
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-jdbc")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
// JPA
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
// Database
runtimeOnly("mysql:mysql-connector-java:${property("mysqlVersion")}")
// Redis
implementation("org.springframework.boot:spring-boot-starter-data-redis")
implementation("it.ozimov:embedded-redis:0.7.2")
// AWS
implementation(platform("io.awspring.cloud:spring-cloud-aws-dependencies:${property("awsSpringCloudVersion")}"))
implementation("io.awspring.cloud:spring-cloud-aws-starter-sqs")
implementation("software.amazon.awssdk:sns")
implementation("com.amazonaws:aws-java-sdk:1.12.125")
// Monitoring
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("io.micrometer:micrometer-registry-prometheus")
// Test
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.testcontainers:junit-jupiter:1.19.3")
testImplementation("org.testcontainers:localstack:1.15.3")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
jvmArgs("-Xmx2048m", "-XX:+HeapDumpOnOutOfMemoryError")
}
allOpen {
annotation("jakarta.persistence.Entity")
annotation("jakarta.persistence.Embeddable")
annotation("jakarta.persistence.MappedSuperclass")
}