build.gradle.kts 776 B

1234567891011121314151617181920212223242526272829303132
  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. // Used by byte-buddy but not brought in as a transitive dependency.
  10. compileOnly("com.google.code.findbugs:annotations")
  11. testImplementation("net.bytebuddy:byte-buddy-agent")
  12. }
  13. otelJava {
  14. minJavaVersionSupported.set(JavaVersion.VERSION_1_9)
  15. }
  16. tasks {
  17. compileJava {
  18. with(options) {
  19. // Because this module targets Java 9, we trigger this compiler bug which was fixed but not
  20. // backported to Java 9 compilation.
  21. // https://bugs.openjdk.java.net/browse/JDK-8209058
  22. compilerArgs.add("-Xlint:none")
  23. }
  24. }
  25. }