forked from open-telemetry/opentelemetry-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
62 lines (50 loc) · 1.41 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("otel.java-conventions")
id("otel.publish-conventions")
id("otel.jmh-conventions")
id("org.jetbrains.kotlin.jvm")
id("otel.animalsniffer-conventions")
}
description = "OpenTelemetry Kotlin Extensions"
otelJava.moduleName.set("io.opentelemetry.extension.kotlin")
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.5.2")
testImplementation(project(":sdk:testing"))
testImplementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")
}
testing {
suites {
val testStrictContext by registering(JvmTestSuite::class) {
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")
}
targets {
all {
testTask.configure {
jvmArgs("-Dio.opentelemetry.context.enableStrictContext=true")
}
}
}
}
}
}
tasks {
withType(KotlinCompile::class) {
kotlinOptions {
jvmTarget = "1.8"
}
}
// We don't have any public Java classes
named("javadoc") {
enabled = false
}
check {
dependsOn(testing.suites)
}
}