build.gradle.kts 587 B

123456789101112131415161718192021
  1. plugins {
  2. id("otel.java-conventions")
  3. }
  4. tasks {
  5. compileJava {
  6. // when code is compiled with jdk 21 and executed with jdk 8 -parameters flag is needed to avoid
  7. // java.lang.reflect.MalformedParametersException: Invalid parameter name ""
  8. // when junit calls java.lang.reflect.Executable.getParameters() on the constructor of a
  9. // non-static nested test class
  10. options.compilerArgs.add("-parameters")
  11. }
  12. }
  13. dependencies {
  14. api(project(":testing-common"))
  15. api("org.apache.httpcomponents:httpclient:4.3")
  16. implementation("io.opentelemetry:opentelemetry-api")
  17. }