From 3fadca743e1dbf6f346cda7440c78aea11b6c224 Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Mon, 14 Feb 2022 23:25:45 +0200 Subject: [PATCH] Exclude broken oshi release (#5372) * Exclude broken oshi release * fix latest deps test --- instrumentation/oshi/javaagent/build.gradle.kts | 8 +++++++- instrumentation/oshi/library/build.gradle.kts | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/instrumentation/oshi/javaagent/build.gradle.kts b/instrumentation/oshi/javaagent/build.gradle.kts index 16bf2f4c28..c9cbeab2d8 100644 --- a/instrumentation/oshi/javaagent/build.gradle.kts +++ b/instrumentation/oshi/javaagent/build.gradle.kts @@ -7,6 +7,8 @@ muzzle { group.set("com.github.oshi") module.set("oshi-core") versions.set("[5.3.1,)") + // Could not parse POM https://repo.maven.apache.org/maven2/com/github/oshi/oshi-core/6.1.1/oshi-core-6.1.1.pom + skip("6.1.1") } } @@ -15,9 +17,13 @@ dependencies { compileOnly("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure") - library("com.github.oshi:oshi-core:5.3.1") + compileOnly("com.github.oshi:oshi-core:5.3.1") + testImplementation("com.github.oshi:oshi-core:5.3.1") testImplementation(project(":instrumentation:oshi:testing")) + + // Could not parse POM https://repo.maven.apache.org/maven2/com/github/oshi/oshi-core/6.1.1/oshi-core-6.1.1.pom + latestDepTestLibrary("com.github.oshi:oshi-core:6.1.0") } tasks { diff --git a/instrumentation/oshi/library/build.gradle.kts b/instrumentation/oshi/library/build.gradle.kts index 23a3b03820..b1de73dac8 100644 --- a/instrumentation/oshi/library/build.gradle.kts +++ b/instrumentation/oshi/library/build.gradle.kts @@ -3,7 +3,11 @@ plugins { } dependencies { - library("com.github.oshi:oshi-core:5.3.1") + compileOnly("com.github.oshi:oshi-core:5.3.1") + testImplementation("com.github.oshi:oshi-core:5.3.1") testImplementation(project(":instrumentation:oshi:testing")) + + // Could not parse POM https://repo.maven.apache.org/maven2/com/github/oshi/oshi-core/6.1.1/oshi-core-6.1.1.pom + latestDepTestLibrary("com.github.oshi:oshi-core:6.1.0") }