File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed
instrumentation/spring/spring-boot-autoconfigure Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -231,30 +231,18 @@ val buildGraalVmReflectionJson = tasks.register("buildGraalVmReflectionJson") {
231231 doLast {
232232 val sourcePackage =
233233 " io.opentelemetry.sdk.extension.incubator.fileconfig.internal.model"
234- val sourcePackagePath = sourcePackage.replace(" ." , " /" )
234+ val sourcePackagePath = sourcePackage.replace(" ." , " /" )
235235
236- val cp = configurations.compileClasspath.get()
237-
238- println (" Scanning classpath for OpenTelemetry Incubator SDK extension jar..." )
239- println (cp.asPath)
240-
241- val incubatorJar = cp
236+ val incubatorJar = configurations.compileClasspath.get()
242237 .filter { it.name.contains(" opentelemetry-sdk-extension-incubator" ) && it.name.endsWith(" .jar" ) }
243238 .singleFile
244239
245- println (" Found incubator jar: $incubatorJar " )
246-
247240 val classes = mutableListOf<String >()
248-
249- // list contents of incubatorJar in gradle cache
250-
251241 zipTree(incubatorJar).matching {
252242 include(" $sourcePackagePath /**" )
253243 }.forEach {
254244 val path = it.path
255245
256- println (path)
257-
258246 val className = path
259247 .substringAfter(sourcePackagePath)
260248 .removePrefix(" /" )
@@ -263,10 +251,6 @@ val buildGraalVmReflectionJson = tasks.register("buildGraalVmReflectionJson") {
263251 classes.add(" $sourcePackage .$className " )
264252 }
265253
266- // todo remove output to console
267- println (" Discovered ${classes.size} classes for reflection:" )
268- println (classes)
269-
270254 // write into targetFile in json format
271255 targetFile.parentFile.mkdirs()
272256 targetFile.bufferedWriter().use { writer ->
You can’t perform that action at this time.
0 commit comments