this is slated for 1.296 now

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16741 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-03-30 23:02:17 +00:00
1 parent 22030707ed
commit 40a050dab6
1 file changed
+2 -2
@@ -157,12 +157,12 @@ public class ClassicPluginStrategy implements PluginStrategy {
}
}
// native m2 support moved to a plugin starting 1.295, so plugins built before that
// native m2 support moved to a plugin starting 1.296, so plugins built before that
// needs to have an implicit dependency to the maven-plugin, or NoClassDefError will ensue.
String hudsonVersion = manifest.getMainAttributes().getValue("Hudson-Version");
String shortName = manifest.getMainAttributes().getValue("Short-Name");
if (!"maven-plugin".equals(shortName) &&
(hudsonVersion == null || hudsonVersion.compareTo("1.295") <= 0)) {
(hudsonVersion == null || hudsonVersion.compareTo("1.296") <= 0)) {
optionalDependencies.add(new PluginWrapper.Dependency("maven-plugin:" + Hudson.VERSION));
}