Move BuildParams class to 'minimumRuntime' source set (#49890)

Move BuildParams class to 'minimumRuntime' source set to retain compatibility
with build-tools for builds using a Java 8 runtime.

Closes #49766

(cherry picked from commit 1059f823acdfa7a2f1f9bff21c7256dae4f3e23c)
This commit is contained in:
Mark Vieira 2019-12-05 16:31:07 -08:00
parent 0f02e02d77
commit abd6fa149c
No known key found for this signature in database
GPG Key ID: CA947EF7E6D4B105
2 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,6 @@ public class BuildParams {
return value(runtimeJavaVersion);
}
@ExecutionTime
public static Boolean isInFipsJvm() {
return value(inFipsJvm);
}
@ -155,6 +154,8 @@ public class BuildParams {
.filter(f -> Modifier.isStatic(f.getModifiers()))
.forEach(f -> {
try {
// Since we are mutating private static fields from a public static inner class we need to suppress
// accessibility controls here.
f.setAccessible(true);
f.set(null, null);
} catch (IllegalAccessException e) {