build.gradle.kts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
  2. plugins {
  3. id("org.jetbrains.kotlin.jvm")
  4. id("otel.javaagent-instrumentation")
  5. }
  6. muzzle {
  7. pass {
  8. group.set("org.jetbrains.kotlinx")
  9. module.set("kotlinx-coroutines-core")
  10. versions.set("[1.0.0,1.3.8)")
  11. }
  12. // 1.3.9 (and beyond?) have changed how artifact names are resolved due to multiplatform variants
  13. pass {
  14. group.set("org.jetbrains.kotlinx")
  15. module.set("kotlinx-coroutines-core-jvm")
  16. versions.set("[1.3.9,)")
  17. }
  18. }
  19. dependencies {
  20. compileOnly("io.opentelemetry:opentelemetry-extension-kotlin")
  21. compileOnly("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
  22. testInstrumentation(project(":instrumentation:opentelemetry-extension-kotlin-1.0:javaagent"))
  23. testInstrumentation(project(":instrumentation:reactor:reactor-3.1:javaagent"))
  24. testImplementation("io.opentelemetry:opentelemetry-extension-kotlin")
  25. testImplementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
  26. testImplementation(project(":instrumentation:reactor:reactor-3.1:library"))
  27. // Use first version with flow support since we have tests for it.
  28. testLibrary("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0")
  29. testLibrary("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:1.3.0")
  30. }
  31. tasks {
  32. withType(KotlinCompile::class).configureEach {
  33. kotlinOptions {
  34. jvmTarget = "1.8"
  35. }
  36. }
  37. }