build.gradle.kts 816 B

123456789101112131415161718192021222324252627282930313233
  1. plugins {
  2. id("otel.java-conventions")
  3. id("otel.publish-conventions")
  4. }
  5. group = "io.opentelemetry.javaagent"
  6. dependencies {
  7. implementation(project(":javaagent-bootstrap"))
  8. implementation("net.bytebuddy:byte-buddy-dep")
  9. implementation("org.slf4j:slf4j-api")
  10. // Used by byte-buddy but not brought in as a transitive dependency.
  11. compileOnly("com.google.code.findbugs:annotations")
  12. testImplementation("net.bytebuddy:byte-buddy-agent")
  13. }
  14. otelJava {
  15. minJavaVersionSupported.set(JavaVersion.VERSION_1_9)
  16. }
  17. tasks {
  18. compileJava {
  19. with(options) {
  20. // Because this module targets Java 9, we trigger this compiler bug which was fixed but not
  21. // backported to Java 9 compilation.
  22. // https://bugs.openjdk.java.net/browse/JDK-8209058
  23. compilerArgs.add("-Xlint:none")
  24. }
  25. }
  26. }