69 lines
2.7 KiB
Plaintext
69 lines
2.7 KiB
Plaintext
import net.ltgt.gradle.errorprone.errorprone
|
|
|
|
plugins {
|
|
id("otel.java-conventions")
|
|
id("otel.publish-conventions")
|
|
id("otel.jmh-conventions")
|
|
}
|
|
|
|
group = "io.opentelemetry.javaagent"
|
|
|
|
dependencies {
|
|
implementation(project(":javaagent-bootstrap"))
|
|
implementation(project(":javaagent-extension-api"))
|
|
implementation(project(":javaagent-instrumentation-api"))
|
|
implementation(project(":javaagent-tooling:javaagent-tooling-java9"))
|
|
implementation(project(":instrumentation-api"))
|
|
implementation(project(":instrumentation-api-annotation-support"))
|
|
implementation(project(":instrumentation-appender-api-internal"))
|
|
implementation(project(":instrumentation-appender-sdk-internal"))
|
|
implementation(project(":muzzle"))
|
|
|
|
implementation("io.opentelemetry:opentelemetry-api")
|
|
implementation("io.opentelemetry:opentelemetry-sdk")
|
|
implementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
|
|
implementation("io.opentelemetry:opentelemetry-sdk-metrics")
|
|
implementation("io.opentelemetry:opentelemetry-sdk-logs")
|
|
implementation("io.opentelemetry:opentelemetry-extension-kotlin")
|
|
implementation("io.opentelemetry:opentelemetry-extension-aws")
|
|
implementation("io.opentelemetry:opentelemetry-extension-trace-propagators")
|
|
implementation("io.opentelemetry:opentelemetry-sdk-extension-resources")
|
|
implementation("io.opentelemetry:opentelemetry-extension-noop-api")
|
|
|
|
// Only the logging exporter is included in our slim distribution so we include it here.
|
|
// Other exporters are in javaagent-exporters
|
|
implementation("io.opentelemetry:opentelemetry-exporter-logging")
|
|
|
|
api("net.bytebuddy:byte-buddy-dep")
|
|
implementation("org.slf4j:slf4j-api")
|
|
|
|
annotationProcessor("com.google.auto.service:auto-service")
|
|
compileOnly("com.google.auto.service:auto-service-annotations")
|
|
|
|
// Used by byte-buddy but not brought in as a transitive dependency.
|
|
compileOnly("com.google.code.findbugs:annotations")
|
|
testCompileOnly("com.google.code.findbugs:annotations")
|
|
|
|
testImplementation(project(":testing-common"))
|
|
testImplementation("com.google.guava:guava")
|
|
testImplementation("org.assertj:assertj-core")
|
|
testImplementation("org.mockito:mockito-core")
|
|
testImplementation("org.mockito:mockito-junit-jupiter")
|
|
}
|
|
|
|
// Here we only include autoconfigure but don"t include OTLP exporters to ensure they are only in
|
|
// the full distribution. We need to override the default exporter setting of OTLP as a result.
|
|
tasks {
|
|
withType<Test>().configureEach {
|
|
environment("OTEL_TRACES_EXPORTER", "none")
|
|
environment("OTEL_METRICS_EXPORTER", "none")
|
|
}
|
|
|
|
// TODO this should live in jmh-conventions
|
|
named<JavaCompile>("jmhCompileGeneratedClasses") {
|
|
options.errorprone {
|
|
isEnabled.set(false)
|
|
}
|
|
}
|
|
}
|