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") }