Isn't it possible to make some flag in hpi meta-inf that will switch classloading modes for plugin?
On Monday, September 28, 2015 at 9:01:39 PM UTC+3, Stephen Connolly wrote: > > I think we could hide them from plugins modulo perhaps those compiled > against older cores... or perhaps we could treat the older core > plugins as being like the other de-bundled functionality > > On 28 September 2015 at 17:51, Jesse Glick <jgl...@cloudbees.com > <javascript:>> wrote: > > On Mon, Sep 28, 2015 at 6:36 AM, Nigel Magnay <nigel....@gmail.com > <javascript:>> wrote: > >> Would 2.0 be an appropriate juncture to revisit the plugin > architecture? > >> > >> I've often gotten bitten by classloader issues in 2nd/3rd party > dependencies > >> (e.g: plugin wants newer version of guava than jenkins-core). Shading > is a > >> reasonably complicated thing to do for a plugin > > > > I do not think we can make fundamental changes, but we could certainly > > try to hide such libraries from the plugin class loader (or, in some > > cases, split the core code relying on them into plugins), so that > > plugins could use simple unshaded dependencies, for example on > > `org.jenkins-ci.libs:guava12:12.0-1`. > > > > -- > > You received this message because you are subscribed to the Google > Groups "Jenkins Developers" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to jenkinsci-de...@googlegroups.com <javascript:>. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr0-3EpWTizZ2EgbVBqm4MBG6%3DZTUceGfTtb%2BZMwQNdrFQ%40mail.gmail.com. > > > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/153b5592-f7ea-4461-9a45-0a630bf072c0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.