diff --git a/plugins/telemetry-otel/build.gradle b/plugins/telemetry-otel/build.gradle index e0f0f5b601e96..40961a910eda0 100644 --- a/plugins/telemetry-otel/build.gradle +++ b/plugins/telemetry-otel/build.gradle @@ -42,6 +42,45 @@ dependencies { testImplementation "io.opentelemetry:opentelemetry-sdk-testing:${versions.opentelemetry}" } +task dependencyLicenses1 { + doLast { + def licenseFile = file("licenses/opentelemetry-exporter-logging-otlp-LICENSE.txt") + if (licenseFile.exists()) { + println "License file found at: ${licenseFile.absolutePath}" + } else { + println "License file not found." + } + } +} + +task debugLicenseFiles { + doLast { + def dir = file("licenses") + def files = dir.listFiles() + if (files) { + files.each { file -> + println "Found file: ${file.name}" + } + } else { + println "No files found in directory: ${dir.absolutePath}" + } + } +} + +task dependencyLicenses2 { + doLast { + def dir = file("licenses") + def files = dir.listFiles() + files.each { file -> + println "Checking file: ${file.name}" + if (file.name.contains("opentelemetry-exporter-logging-otlp")) { + println "File content: ${file.text}" + } + } + } +} + + thirdPartyAudit { ignoreViolations( diff --git a/plugins/telemetry-otel/licenses/opentelemetry-exporter-logging-otlp-LICENSE.txt b/plugins/telemetry-otel/licenses/opentelemetry-exporter-logging-otlp-LICENSE.txt similarity index 100% rename from plugins/telemetry-otel/licenses/opentelemetry-exporter-logging-otlp-LICENSE.txt rename to plugins/telemetry-otel/licenses/opentelemetry-exporter-logging-otlp-LICENSE.txt