27 lines
		
	
	
		
			701 B
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			701 B
		
	
	
	
		
			Plaintext
		
	
	
	
| plugins {
 | |
|   id("otel.javaagent-testing")
 | |
| }
 | |
| 
 | |
| dependencies {
 | |
|   testInstrumentation(project(":instrumentation:jetty:jetty-11.0:javaagent"))
 | |
|   testImplementation(project(":instrumentation:servlet:servlet-5.0:testing"))
 | |
| 
 | |
|   testLibrary("org.apache.tomcat.embed:tomcat-embed-core:10.0.0")
 | |
|   testLibrary("org.apache.tomcat.embed:tomcat-embed-jasper:10.0.0")
 | |
| }
 | |
| 
 | |
| val testLatestDeps = findProperty("testLatestDeps") as Boolean
 | |
| 
 | |
| if (testLatestDeps) {
 | |
|   otelJava {
 | |
|     // Tomcat 10.1 requires Java 11
 | |
|     minJavaVersionSupported.set(JavaVersion.VERSION_11)
 | |
|   }
 | |
| }
 | |
| 
 | |
| tasks {
 | |
|   withType<Test>().configureEach {
 | |
|     jvmArgs("-Dotel.instrumentation.servlet.experimental.capture-request-parameters=test-parameter")
 | |
|   }
 | |
| }
 |