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:
parent
0f02e02d77
commit
abd6fa149c
|
@ -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) {
|
Loading…
Reference in New Issue