12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- plugins {
- id("otel.javaagent-instrumentation")
- id("otel.scala-conventions")
- }
- muzzle {
-
- pass {
- group.set("com.twitter")
- module.set("finatra-http_2.11")
- versions.set("[2.9.0,]")
- excludeDependency("io.netty:netty-transport-native-epoll")
- }
- pass {
- group.set("com.twitter")
- module.set("finatra-http_2.12")
- versions.set("[2.9.0,]")
- excludeDependency("io.netty:netty-transport-native-epoll")
- }
- }
- val finatraLatest by configurations.creating {
- isCanBeConsumed = false
- isCanBeResolved = false
- }
- dependencies {
-
-
- compileOnly("com.twitter:finatra-http_2.11:2.9.0")
- testInstrumentation(project(":instrumentation:netty:netty-4.1:javaagent"))
- testImplementation(enforcedPlatform("com.fasterxml.jackson:jackson-bom:2.9.10"))
- testImplementation("com.twitter:finatra-http_2.11:19.12.0") {
-
-
-
- exclude("io.netty", "netty-transport-native-epoll")
- }
- testImplementation("io.netty:netty-transport-native-epoll:4.1.51.Final:linux-x86_64")
-
- testImplementation("com.sun.activation:javax.activation:1.2.0")
- finatraLatest("com.twitter:finatra-http_2.13:+") {
- exclude("io.netty", "netty-transport-native-epoll")
- }
- }
- testing {
- suites {
- val latestDepTest by registering(JvmTestSuite::class) {
- dependencies {
-
- implementation("io.netty:netty-transport-native-epoll:4.1.51.Final:linux-x86_64")
- }
- }
- }
- }
- configurations {
- named("latestDepTestImplementation") {
- extendsFrom(configurations["finatraLatest"])
- }
- }
- tasks {
- if (findProperty("testLatestDeps") as Boolean) {
-
- named("test") {
- enabled = false
- }
- named("compileTestScala") {
- enabled = false
- }
- check {
- dependsOn(testing.suites)
- }
- }
- withType<Test>().configureEach {
-
- jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
- jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
- jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
- }
- }
|