We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e521e6c commit 2849844Copy full SHA for 2849844
instrumentation/oshi/library/build.gradle.kts
@@ -3,11 +3,13 @@ plugins {
3
id("com.google.osdetector")
4
}
5
6
-// 5.5.0 is the first version that works on arm mac
7
-val oshiVersion = if (osdetector.os == "osx" && osdetector.arch == "aarch_64") "5.5.0" else "5.3.1"
8
-
9
dependencies {
10
- library("com.github.oshi:oshi-core:$oshiVersion")
+ library("com.github.oshi:oshi-core:5.3.1")
11
12
testImplementation(project(":instrumentation:oshi:testing"))
13
+
+if (osdetector.os == "osx" && osdetector.arch == "aarch_64" && !(findProperty("testLatestDeps") as Boolean)) {
+ // 5.5.0 is the first version that works on arm mac
14
+ configurations.testRuntimeClasspath.get().resolutionStrategy.force("com.github.oshi:oshi-core:5.5.0")
15
+}
0 commit comments