Revert JENKINS-20679 (support for plugin Java requirement metadata) (#6549)

Co-authored-by: Tim Jacomb <timjacomb1+github@gmail.com>
This commit is contained in:
Basil CrowandTim Jacomb authored and GitHub committed 2022-05-11 08:59:33 -07:00
1 parent bd7bdc327c
commit aa0513ee10
20 files changed
+13 -297

No files matched your search

@@ -1412,16 +1412,6 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
if (plugin.isForNewerHudson()) {
jsonObject.put("newerCoreRequired", Messages.PluginManager_coreWarning(plugin.requiredCore));
}
if (plugin.isForNewerJava()) {
jsonObject.put("newerJavaRequired", Messages.PluginManager_javaWarning(plugin.minimumJavaVersion));
}
if (plugin.isNeededDependenciesForNewerJava()) {
VersionNumber javaVersion = plugin.getNeededDependenciesMinimumJavaVersion();
if (javaVersion == null) {
throw new IllegalStateException("java version cannot be null here");
}
jsonObject.put("dependenciesNewerJava", Messages.PluginManager_depJavaWarning(javaVersion.toString()));
}
if (plugin.hasWarnings()) {
JSONObject unresolvedSecurityWarnings = new JSONObject();
unresolvedSecurityWarnings.put("text", Messages.PluginManager_securityWarning());
@@ -2057,9 +2047,6 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
if (toInstall.isForNewerHudson()) {
LOGGER.log(WARNING, "{0}@{1} was built for a newer Jenkins", new Object[] {toInstall.name, toInstall.version});
}
if (toInstall.isForNewerJava()) {
LOGGER.log(WARNING, "{0}@{1} was built for a newer Java", new Object[] {toInstall.name, toInstall.version});
}
}
/**