-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
69 lines (66 loc) · 2.74 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "3.4.2" apply false
id("io.spring.dependency-management") version "1.1.7" apply false
val kotlinVersion = "2.1.10"
kotlin("jvm") version kotlinVersion apply false
kotlin("plugin.spring") version kotlinVersion apply false
}
allprojects {
group = "me.ilya40umov"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
maven { url = uri("https://repo.spring.io/milestone") }
maven { url = uri("https://repo.spring.io/snapshot") }
}
}
subprojects {
apply<JavaPlugin>()
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
configurations {
named("compileOnly") {
extendsFrom(named("annotationProcessor").get())
}
}
dependencies {
val otelVersion = "1.48.0"
val otelAlphaVersion = "1.31.0-alpha"
val kotestVersion = "5.9.1"
// TODO update brave & zipkin reporter as soon as Spring Boot updates their versions
"implementation"(platform("io.zipkin.brave:brave-bom:5.18.1"))
"implementation"(platform("io.zipkin.reporter2:zipkin-reporter-bom:3.5.0"))
"implementation"(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.10.1"))
"implementation"(platform("io.opentelemetry:opentelemetry-bom:$otelVersion"))
"implementation"(platform("io.opentelemetry:opentelemetry-bom-alpha:$otelAlphaVersion"))
"implementation"(platform("org.junit:junit-bom:5.11.4"))
"testImplementation"("io.kotest:kotest-runner-junit5:$kotestVersion")
"testImplementation"("io.kotest:kotest-assertions-core:$kotestVersion")
"testImplementation"("org.junit.jupiter:junit-jupiter-api")
"testRuntimeOnly"("org.junit.jupiter:junit-jupiter-engine")
constraints {
"implementation"("ch.qos.logback:logback-classic:1.5.17")
"implementation"("com.github.loki4j:loki-logback-appender:1.6.0")
"implementation"("io.projectreactor:reactor-core:3.7.2")
"implementation"("io.micrometer:context-propagation:1.1.2")
"implementation"("io.opentelemetry.instrumentation:opentelemetry-logback-mdc-1.0:$otelAlphaVersion")
"implementation"("io.opentelemetry.instrumentation:opentelemetry-reactor-3.1:$otelAlphaVersion")
}
}
tasks {
withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "17"
}
}
withType<Test> {
useJUnitPlatform {
testLogging.showStandardStreams = true
}
}
}
}