Skip to content

Commit

Permalink
Convert Jetty 8.0 groovy to java (#7975)
Browse files Browse the repository at this point in the history
related to
#7195
  • Loading branch information
heyams authored Mar 11, 2023
1 parent 995baa8 commit 468aa9e
Show file tree
Hide file tree
Showing 7 changed files with 291 additions and 242 deletions.
8 changes: 8 additions & 0 deletions instrumentation/jetty/jetty-8.0/javaagent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@ dependencies {
latestDepTestLibrary("org.eclipse.jetty:jetty-server:10.+") // see jetty-11.0 module
latestDepTestLibrary("org.eclipse.jetty:jetty-servlet:10.+") // see jetty-11.0 module
}

// jetty-server 10+ requires Java 11
val latestDepTest = findProperty("testLatestDeps") as Boolean
if (latestDepTest) {
otelJava {
minJavaVersionSupported.set(JavaVersion.VERSION_11)
}
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

package io.opentelemetry.javaagent.instrumentation.jetty.v8_0;

import io.opentelemetry.api.GlobalOpenTelemetry;
import io.opentelemetry.api.trace.Tracer;
import java.util.concurrent.Callable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

package io.opentelemetry.javaagent.instrumentation.jetty.v8_0;

public class JavaLambdaMaker {

@SuppressWarnings("FunctionalExpressionCanBeFolded")
Expand Down
Loading

0 comments on commit 468aa9e

Please sign in to comment.