Make ParallelDetector Gradle configuration cache compliant (#95434)

This commit is contained in:
Rene Groeschke 2023-04-21 13:14:23 +02:00 committed by GitHub
parent 52172d092a
commit 4fc6dda21e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ public class ParallelDetector {
? "hw.perflevel0.physicalcpu"
: "hw.physicalcpu";
project.exec(spec -> {
project.getProviders().exec(spec -> {
spec.setExecutable("sysctl");
spec.args("-n", query);
spec.setStandardOutput(stdout);