-
Notifications
You must be signed in to change notification settings - Fork 916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change oshi test library logic for arm mac #13465
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm...muzzle still has 5.3.1 though.
dependencies { | ||
library("com.github.oshi:oshi-core:$oshiVersion") | ||
// 5.5.0 is the first version that works on arm mac | ||
library("com.github.oshi:oshi-core:5.5.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if your goal is to remove the variable from library declaration then you could also
if (osdetector.os == "osx" && osdetector.arch == "aarch_64" && !(findProperty("testLatestDeps") as Boolean)) {
// 5.5.0 is the first version that works on arm mac
configurations.testRuntimeClasspath.get().resolutionStrategy.force("com.github.oshi:oshi-core:5.5.0")
}
if (osdetector.os == "osx" && osdetector.arch == "aarch_64" && !(findProperty("testLatestDeps") as Boolean)) { | ||
// 5.5.0 is the first version that works on arm mac | ||
configurations.testRuntimeClasspath.get().resolutionStrategy.force("com.github.oshi:oshi-core:5.5.0") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usually we have stuff like this outside of the dependencies block, like in
Line 53 in 826ba74
configurations.testRuntimeClasspath.get().resolutionStrategy.force("com.google.guava:guava:14.0.1") |
Discussed here
bumping the oshi minimum version to 5.5.0 and getting rid of the conditional for arm macremoving variable from declaration and handling the override in a different way