-
Notifications
You must be signed in to change notification settings - Fork 791
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate instrumentation gradle files to kotlin (#3414)
* Migrate instrumentation gradle files to kotlin * Convert * Muzzle
- Loading branch information
Anuraag Agrawal
committed
Jun 28, 2021
1 parent
9e2fcba
commit 761b9c2
Showing
450 changed files
with
6,133 additions
and
5,962 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
plugins { | ||
id("otel.javaagent-instrumentation") | ||
id("otel.scala-conventions") | ||
} | ||
|
||
muzzle { | ||
pass { | ||
group.set("com.typesafe.akka") | ||
module.set("akka-actor_2.11") | ||
versions.set("[2.5.0,)") | ||
} | ||
pass { | ||
group.set("com.typesafe.akka") | ||
module.set("akka-actor_2.12") | ||
versions.set("[2.5.0,)") | ||
} | ||
pass { | ||
group.set("com.typesafe.akka") | ||
module.set("akka-actor_2.13") | ||
versions.set("(,)") | ||
} | ||
} | ||
|
||
dependencies { | ||
compileOnly("com.typesafe.akka:akka-actor_2.11:2.5.0") | ||
testImplementation("com.typesafe.akka:akka-actor_2.11:2.5.0") | ||
|
||
latestDepTestLibrary("com.typesafe.akka:akka-actor_2.13:+") | ||
} | ||
|
||
if (findProperty("testLatestDeps") as Boolean) { | ||
configurations { | ||
// akka artifact name is different for regular and latest tests | ||
testImplementation { | ||
exclude("com.typesafe.akka", "akka-actor_2.11") | ||
} | ||
} | ||
} |
16 changes: 0 additions & 16 deletions
16
instrumentation/akka-actor-fork-join-2.5/javaagent/build.gradle
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
instrumentation/akka-actor-fork-join-2.5/javaagent/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
plugins { | ||
id("otel.javaagent-instrumentation") | ||
id("otel.scala-conventions") | ||
} | ||
|
||
muzzle { | ||
pass { | ||
group.set("com.typesafe.akka") | ||
module.set("akka-actor_2.11") | ||
versions.set("[2.5.0,)") | ||
} | ||
} | ||
|
||
dependencies { | ||
library("com.typesafe.akka:akka-actor_2.11:2.5.0") | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
plugins { | ||
id("otel.javaagent-instrumentation") | ||
id("otel.scala-conventions") | ||
} | ||
|
||
muzzle { | ||
pass { | ||
group.set("com.typesafe.akka") | ||
module.set("akka-http_2.11") | ||
versions.set("[10.0.0,10.1.0)") | ||
// later versions of akka-http expect streams to be provided | ||
extraDependency("com.typesafe.akka:akka-stream_2.11:2.4.14") | ||
} | ||
pass { | ||
group.set("com.typesafe.akka") | ||
module.set("akka-http_2.12") | ||
versions.set("[10.0.0,10.1.0)") | ||
// later versions of akka-http expect streams to be provided | ||
extraDependency("com.typesafe.akka:akka-stream_2.12:2.4.14") | ||
} | ||
pass { | ||
group.set("com.typesafe.akka") | ||
module.set("akka-http_2.11") | ||
versions.set("[10.1.0,)") | ||
// later versions of akka-http expect streams to be provided | ||
extraDependency("com.typesafe.akka:akka-stream_2.11:2.5.11") | ||
} | ||
pass { | ||
group.set("com.typesafe.akka") | ||
module.set("akka-http_2.12") | ||
versions.set("[10.1.0,)") | ||
// later versions of akka-http expect streams to be provided | ||
extraDependency("com.typesafe.akka:akka-stream_2.12:2.5.11") | ||
} | ||
//There is no akka-http 10.0.x series for scala 2.13 | ||
pass { | ||
group.set("com.typesafe.akka") | ||
module.set("akka-http_2.13") | ||
versions.set("[10.1.8,)") | ||
// later versions of akka-http expect streams to be provided | ||
extraDependency("com.typesafe.akka:akka-stream_2.13:2.5.23") | ||
} | ||
} | ||
|
||
dependencies { | ||
library("com.typesafe.akka:akka-http_2.11:10.0.0") | ||
library("com.typesafe.akka:akka-stream_2.11:2.4.14") | ||
|
||
// these instrumentations are not needed for the tests to pass | ||
// they are here to test for context leaks | ||
testInstrumentation(project(":instrumentation:akka-actor-2.5:javaagent")) | ||
testInstrumentation(project(":instrumentation:akka-actor-fork-join-2.5:javaagent")) | ||
} |
14 changes: 0 additions & 14 deletions
14
instrumentation/apache-camel-2.20/javaagent-unit-tests/build.gradle
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
instrumentation/apache-camel-2.20/javaagent-unit-tests/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
plugins { | ||
id("otel.java-conventions") | ||
} | ||
|
||
dependencies { | ||
testImplementation(project(":instrumentation:apache-camel-2.20:javaagent")) | ||
testImplementation("org.apache.camel:camel-core:2.20.1") | ||
testImplementation("org.apache.camel:camel-aws:2.20.1") | ||
testImplementation("org.apache.camel:camel-http:2.20.1") | ||
|
||
testImplementation("io.opentelemetry:opentelemetry-extension-trace-propagators") | ||
testImplementation("io.opentelemetry:opentelemetry-extension-aws") | ||
testImplementation("org.assertj:assertj-core") | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.