build.gradle.kts 836 B

123456789101112131415161718192021222324252627282930313233
  1. plugins {
  2. id("otel.library-instrumentation")
  3. }
  4. repositories {
  5. mavenCentral()
  6. maven("https://maven.restlet.talend.com/")
  7. mavenLocal()
  8. }
  9. dependencies {
  10. library("org.restlet.jse:org.restlet:2.0.2")
  11. testImplementation(project(":instrumentation:restlet:restlet-2.0:testing"))
  12. testLibrary("org.restlet.jse:org.restlet.ext.jetty:2.0.2")
  13. }
  14. // restlet registers the first engine that is present on classpath, so we need to enforce the appropriate version
  15. if (findProperty("testLatestDeps") as Boolean) {
  16. configurations.configureEach {
  17. resolutionStrategy {
  18. eachDependency {
  19. if (requested.group == "org.restlet.jse") {
  20. useVersion("2.+")
  21. }
  22. }
  23. }
  24. }
  25. }
  26. tasks.withType<Test>().configureEach {
  27. jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
  28. }