build.gradle.kts 704 B

1234567891011121314151617181920212223242526272829
  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. }