forked from open-telemetry/opentelemetry-java
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
48 lines (37 loc) · 1.15 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("otel.java-conventions")
`maven-publish`
id("me.champeau.jmh")
id("org.jetbrains.kotlin.jvm")
id("org.unbroken-dome.test-sets")
id("ru.vyarus.animalsniffer")
}
description = "OpenTelemetry Kotlin Extensions"
extra["moduleName"] = "io.opentelemetry.extension.kotlin"
testSets {
create("testStrictContext")
}
dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
api(project(":api:all"))
compileOnly("org.jetbrains.kotlin:kotlin-stdlib-common")
compileOnly("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")
testImplementation(project(":sdk:testing"))
testImplementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")
}
tasks {
withType(KotlinCompile::class) {
kotlinOptions {
jvmTarget = "1.8"
}
}
// We don't have any public Java classes
named("javadoc") {
enabled = false
}
named<Test>("testStrictContext") {
jvmArgs("-Dio.opentelemetry.context.enableStrictContext=true")
}
}