-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
57 lines (50 loc) · 1.31 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
plugins {
kotlin("jvm") version "2.0.21"
id("com.github.johnrengelman.shadow") version "8.1.1"
id("org.jlleitschuh.gradle.ktlint") version "12.1.1"
}
version = "1.0.0"
group = "com.monta.otel"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
val otelVersion = "2.10.0"
implementation(platform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:$otelVersion-alpha"))
implementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
implementation("io.opentelemetry.semconv:opentelemetry-semconv")
implementation("io.opentelemetry.contrib:opentelemetry-samplers:1.41.0-alpha")
}
sourceSets {
main {
java.srcDirs("src/main/kotlin")
resources.srcDirs("src/main/resources")
}
test {
java.srcDirs("src/test/kotlin")
resources.srcDirs("src/test/resources")
}
}
kotlin {
jvmToolchain(17)
}
ktlint {
filter {
exclude("**/generated/**")
include("**/kotlin/**")
}
}
tasks {
shadowJar {
archiveBaseName.set("otel-extension")
archiveVersion.set("")
archiveClassifier.set("")
}
processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
processTestResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
}