build.gradle.kts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.3.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. library("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0")
  21. compileOnly(project(":instrumentation-annotations-support"))
  22. implementation(project(":instrumentation:kotlinx-coroutines:kotlinx-coroutines-flow-1.3:javaagent-kotlin"))
  23. testInstrumentation(project(":instrumentation:kotlinx-coroutines:kotlinx-coroutines-1.0:javaagent"))
  24. testInstrumentation(project(":instrumentation:opentelemetry-extension-kotlin-1.0:javaagent"))
  25. testInstrumentation(project(":instrumentation:reactor:reactor-3.1:javaagent"))
  26. testImplementation("io.opentelemetry:opentelemetry-extension-kotlin")
  27. testImplementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
  28. testImplementation(project(":instrumentation:reactor:reactor-3.1:library"))
  29. testImplementation(project(":instrumentation-annotations"))
  30. testLibrary("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:1.3.0")
  31. }
  32. tasks {
  33. withType(KotlinCompile::class).configureEach {
  34. kotlinOptions {
  35. jvmTarget = "1.8"
  36. }
  37. }
  38. withType<Test>().configureEach {
  39. jvmArgs("-Dio.opentelemetry.javaagent.shaded.io.opentelemetry.context.enableStrictContext=false")
  40. }
  41. }