1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- plugins {
- id("otel.javaagent-instrumentation")
- id("otel.scala-conventions")
- }
- muzzle {
- pass {
- group.set("org.apache.pekko")
- module.set("pekko-http_2.12")
- versions.set("[1.0,)")
- assertInverse.set(true)
- extraDependency("org.apache.pekko:pekko-stream_2.12:1.0.1")
- }
- pass {
- group.set("org.apache.pekko")
- module.set("pekko-http_2.13")
- versions.set("[1.0,)")
- assertInverse.set(true)
- extraDependency("org.apache.pekko:pekko-stream_2.13:1.0.1")
- }
- }
- dependencies {
- library("org.apache.pekko:pekko-http_2.12:1.0.0")
- library("org.apache.pekko:pekko-stream_2.12:1.0.1")
- testInstrumentation(project(":instrumentation:pekko-actor-1.0:javaagent"))
- testInstrumentation(project(":instrumentation:executors:javaagent"))
- latestDepTestLibrary("org.apache.pekko:pekko-http_2.13:+")
- latestDepTestLibrary("org.apache.pekko:pekko-stream_2.13:+")
- }
- tasks {
- val testStableSemconv by registering(Test::class) {
- jvmArgs("-Dotel.semconv-stability.opt-in=http")
- }
- withType<Test>().configureEach {
- // required on jdk17
- jvmArgs("--add-exports=java.base/sun.security.util=ALL-UNNAMED")
- jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
- jvmArgs("-Dio.opentelemetry.javaagent.shaded.io.opentelemetry.context.enableStrictContext=false")
- systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
- }
- check {
- dependsOn(testStableSemconv)
- }
- }
- if (findProperty("testLatestDeps") as Boolean) {
- configurations {
- // pekko artifact name is different for regular and latest tests
- testImplementation {
- exclude("org.apache.pekko", "pekko-http_2.12")
- exclude("org.apache.pekko", "pekko-stream_2.12")
- }
- }
- }
|