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 @@ -230,30 +230,18 @@ val buildGraalVmReflectionJson = tasks.register("buildGraalVmReflectionJson") {
230230 doLast {
231231 val sourcePackage =
232232 " io.opentelemetry.sdk.extension.incubator.fileconfig.internal.model"
233- val sourcePackagePath = sourcePackage.replace(" ." , " /" )
233+ val sourcePackagePath = sourcePackage.replace(" ." , " /" )
234234
235- val cp = configurations.compileClasspath.get()
236-
237- println (" Scanning classpath for OpenTelemetry Incubator SDK extension jar..." )
238- println (cp.asPath)
239-
240- val incubatorJar = cp
235+ val incubatorJar = configurations.compileClasspath.get()
241236 .filter { it.name.contains(" opentelemetry-sdk-extension-incubator" ) && it.name.endsWith(" .jar" ) }
242237 .singleFile
243238
244- println (" Found incubator jar: $incubatorJar " )
245-
246239 val classes = mutableListOf<String >()
247-
248- // list contents of incubatorJar in gradle cache
249-
250240 zipTree(incubatorJar).matching {
251241 include(" $sourcePackagePath /**" )
252242 }.forEach {
253243 val path = it.path
254244
255- println (path)
256-
257245 val className = path
258246 .substringAfter(sourcePackagePath)
259247 .removePrefix(" /" )
@@ -262,10 +250,6 @@ val buildGraalVmReflectionJson = tasks.register("buildGraalVmReflectionJson") {
262250 classes.add(" $sourcePackage .$className " )
263251 }
264252
265- // todo remove output to console
266- println (" Discovered ${classes.size} classes for reflection:" )
267- println (classes)
268-
269253 // write into targetFile in json format
270254 targetFile.parentFile.mkdirs()
271255 targetFile.bufferedWriter().use { writer ->
You can’t perform that action at this time.
0 commit comments