mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 20:12:14 +00:00
Revert JENKINS-20679 (support for plugin Java requirement metadata) (#6549)
Co-authored-by: Tim Jacomb <timjacomb1+github@gmail.com>
This commit is contained in:
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});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user