-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
69 lines (56 loc) · 2.04 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
plugins {
id("org.springframework.boot") version "3.3.1"
id("io.spring.dependency-management") version "1.1.5"
id("com.google.cloud.tools.jib") version "3.4.3"
kotlin("plugin.spring") version "2.0.0"
kotlin("jvm") version "2.0.0"
}
group = "example"
version = "1.0.0"
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.kafka:spring-kafka")
implementation("org.apache.kafka:kafka-clients:3.7.1")
implementation("org.apache.kafka:kafka-streams:3.7.1")
implementation ("io.micrometer:micrometer-registry-prometheus:1.13.2")
// https://github.com/awslabs/aws-sdk-kotlin/issues/765
implementation("aws.sdk.kotlin:s3:1.2.50") {
constraints {
implementation("com.squareup.okhttp3:okhttp:5.0.0-alpha.14") {
because("okhttp3 ~v4 does not support Request builder (kotlin reflect)")
}
}
}
configurations.all {
// https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.ResolutionStrategy.html
resolutionStrategy.eachDependency {
if (requested.group == "com.squareup.okhttp3" && requested.name == "okhttp") {
useVersion("5.0.0-alpha.14")
because("okhttp3 ~v4 does not support Request builder (kotlin reflect) on AWS SDK")
}
}
}
implementation("org.slf4j:slf4j-api:2.0.13")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.1")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.12.0")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.apache.kafka:kafka-streams-test-utils:3.7.1")
compileOnly("org.projectlombok:lombok:1.18.34")
annotationProcessor("org.projectlombok:lombok")
}
tasks.withType<Test> {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}