We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1bf8c5 commit 235abf2Copy full SHA for 235abf2
java/layer-wrapper/build.gradle.kts
@@ -35,10 +35,8 @@ tasks {
35
}
36
37
38
-val runtimeClasspath = project.configurations["runtimeClasspath"]
39
-
40
tasks.register("printOtelJavaInstrumentationVersion") {
41
doLast {
42
- println(runtimeClasspath.resolvedConfiguration.resolvedArtifacts.find { it.name == "opentelemetry-aws-lambda-events-2.2" }?.moduleVersion?.id?.version)
+ println(configurations.named("runtimeClasspath").get().resolvedConfiguration.resolvedArtifacts.find { it.name == "opentelemetry-aws-lambda-events-2.2" }?.moduleVersion?.id?.version)
43
44
0 commit comments