opentelemetry-java-instrume.../instrumentation-docs/build.gradle.kts

27 lines
705 B
Plaintext

plugins {
id("otel.java-conventions")
}
otelJava {
minJavaVersionSupported.set(JavaVersion.VERSION_17)
}
dependencies {
implementation("org.yaml:snakeyaml:2.4")
implementation("io.opentelemetry:opentelemetry-sdk-common")
testImplementation(enforcedPlatform("org.junit:junit-bom:5.12.1"))
testImplementation("org.assertj:assertj-core:3.27.3")
testImplementation("org.junit.jupiter:junit-jupiter-api")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
tasks {
val generateDocs by registering(JavaExec::class) {
dependsOn(classes)
mainClass.set("io.opentelemetry.instrumentation.docs.DocGeneratorApplication")
classpath(sourceSets["main"].runtimeClasspath)
}
}