-
Notifications
You must be signed in to change notification settings - Fork 857
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate tests that need java 11 in latestDep
- Loading branch information
1 parent
1d68048
commit 25a4d89
Showing
35 changed files
with
54 additions
and
8 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
instrumentation/servlet/servlet-3.0/javaagent-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,53 @@ | ||
plugins { | ||
id("otel.javaagent-instrumentation") | ||
} | ||
muzzle { | ||
pass { | ||
group.set("javax.servlet") | ||
module.set("javax.servlet-api") | ||
versions.set("[3.0,)") | ||
assertInverse.set(true) | ||
} | ||
fail { | ||
group.set("javax.servlet") | ||
module.set("servlet-api") | ||
versions.set("(,)") | ||
} | ||
} | ||
|
||
dependencies { | ||
testImplementation(project(":instrumentation:servlet:servlet-3.0:javaagent")) | ||
|
||
compileOnly("javax.servlet:javax.servlet-api:3.0.1") | ||
|
||
testInstrumentation(project(":instrumentation:jetty:jetty-8.0:javaagent")) | ||
testImplementation(project(":instrumentation:servlet:servlet-common:bootstrap")) | ||
|
||
testLibrary("org.eclipse.jetty:jetty-server:8.0.0.v20110901") | ||
testLibrary("org.eclipse.jetty:jetty-servlet:8.0.0.v20110901") | ||
testLibrary("org.apache.tomcat.embed:tomcat-embed-core:8.0.41") | ||
testLibrary("org.apache.tomcat.embed:tomcat-embed-jasper:8.0.41") | ||
|
||
latestDepTestLibrary("org.eclipse.jetty:jetty-server:10.+") // see servlet-5.0 module | ||
latestDepTestLibrary("org.eclipse.jetty:jetty-servlet:10.+") // see servlet-5.0 module | ||
|
||
latestDepTestLibrary("org.apache.tomcat.embed:tomcat-embed-core:9.+") // see servlet-5.0 module | ||
latestDepTestLibrary("org.apache.tomcat.embed:tomcat-embed-jasper:9.+") // see servlet-5.0 module | ||
} | ||
|
||
tasks { | ||
withType<Test>().configureEach { | ||
jvmArgs("-Dotel.instrumentation.servlet.experimental.capture-request-parameters=test-parameter") | ||
// required on jdk17 | ||
jvmArgs("--add-opens=java.base/java.util=ALL-UNNAMED") | ||
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions") | ||
} | ||
} | ||
|
||
val latestDepTest = findProperty("testLatestDeps") as Boolean | ||
|
||
if (latestDepTest) { | ||
otelJava { | ||
minJavaVersionSupported.set(JavaVersion.VERSION_11) | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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