Relates to #61857
This commit is contained in:
parent
cdfb163c7c
commit
6d250e0f44
|
@ -38,6 +38,7 @@ public class BuildParams {
|
|||
private static JavaVersion minimumRuntimeVersion;
|
||||
private static JavaVersion gradleJavaVersion;
|
||||
private static JavaVersion runtimeJavaVersion;
|
||||
private static String runtimeJavaDetails;
|
||||
private static Boolean inFipsJvm;
|
||||
private static String gitRevision;
|
||||
private static String gitOrigin;
|
||||
|
@ -89,6 +90,10 @@ public class BuildParams {
|
|||
return value(runtimeJavaVersion);
|
||||
}
|
||||
|
||||
public static String getRuntimeJavaDetails() {
|
||||
return value(runtimeJavaDetails);
|
||||
}
|
||||
|
||||
public static Boolean isInFipsJvm() {
|
||||
return value(inFipsJvm);
|
||||
}
|
||||
|
@ -198,6 +203,10 @@ public class BuildParams {
|
|||
BuildParams.runtimeJavaVersion = requireNonNull(runtimeJavaVersion);
|
||||
}
|
||||
|
||||
public void setRuntimeJavaDetails(String runtimeJavaDetails) {
|
||||
BuildParams.runtimeJavaDetails = runtimeJavaDetails;
|
||||
}
|
||||
|
||||
public void setInFipsJvm(boolean inFipsJvm) {
|
||||
BuildParams.inFipsJvm = inFipsJvm;
|
||||
}
|
||||
|
|
|
@ -105,6 +105,7 @@ public class GlobalBuildInfoPlugin implements Plugin<Project> {
|
|||
params.setRuntimeJavaHome(runtimeJavaHome);
|
||||
params.setRuntimeJavaVersion(determineJavaVersion("runtime java.home", runtimeJavaHome, minimumRuntimeVersion));
|
||||
params.setIsRutimeJavaHomeSet(Jvm.current().getJavaHome().equals(runtimeJavaHome) == false);
|
||||
params.setRuntimeJavaDetails(getJavaInstallation(runtimeJavaHome).getImplementationName());
|
||||
params.setJavaVersions(getAvailableJavaVersions(minimumCompilerVersion));
|
||||
params.setMinimumCompilerVersion(minimumCompilerVersion);
|
||||
params.setMinimumRuntimeVersion(minimumRuntimeVersion);
|
||||
|
|
Loading…
Reference in New Issue