* Remove usages of deprecated (in Java 9 and above) `Class#newInstance`
* Improve catching of InvocationTargetException
* Use AssertionError where appropriate
* Omit stacktraces on ClassNotFoundException in PluginStrategy classloading
* Modify implementation to not fill in stacktraces by default
* Apply suggestions from code review
* Restrict withFillInStackTracesOnClassNotFoundException() at Beta API
* Do not warn repeatedly of the same missing update site dependency.
This happens when locally testing split plugins (despite their presence in WEB-INF/detached-plugins/*.hpi).
(cherry picked from commit 918a0fd221)
* Detached plugins must be kept up to date with security advisories.
(cherry picked from commit e08d28a698)
* Load detached plugins which are implicit dependencies of other plugins at startup, even if the update center was not used.
(cherry picked from commit ad7a36001d)
* Adjusted expected version after e08d28a698.
(cherry picked from commit 84f939cebd)
* e08d28a698 exposed tests which had been incorrectly storing plugins as *.hpi rather than *.jpi.
(cherry picked from commit a0abad7ec4)
* Test failure after ad7a36001d.
(cherry picked from commit 0084e8dbdd)
* Another test failure after ad7a36001d30a6174b25e616fc3c215dd24919d1; fewer installDetachedPlugin calls are now required.
(cherry picked from commit b65bb54e99)
* Move detached plugins logic into a dedicated class
ClassicPluginStrategy is already long enough, so trying to make things a
bit more focused before adding Java 11 logic. (and even if not, the change
still splits a class that is almost 1k lines).
* Install jaxb as detached only on Java 11+
* Remove duplicate @Restricted
Given the enclosing class already has it.
* Use 1.5 release
* Add more test coverage
* getMinJavaVersion => getMinimumJavaVersion
* Rename DetachedPluginsManager as DetachedPluginsUtil
as requested by Oleg and Jesse. Mainly because of the misleading
relationship (there's no inheritance) with the existing `PluginManager`
class.
* 🤦 adjust to 1.5 release method renaming
* Clarify minimum Java version column
Co-Authored-By: batmat <bmathus@gmail.com>
* Update to 2.3.0 version of the jaxb plugin
* Bump minimum core version to next expected release version
* Add preventive cycle breaks for jaxb while waiting for JENKINS-28942
As requested by Oleg.
* Add test to fail fast on wrong format for split-plugins.txt