-
Notifications
You must be signed in to change notification settings - Fork 24.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapt pluginmanager to the new world #12408
Conversation
|
||
if (site) { | ||
if (!Files.exists(dir.resolve("_site"))) { | ||
throw new IllegalArgumentException("Plugin [" + name + "] is a site plugin but has no _site"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add directory
or dir
at the end of the string
left a few minor comments about exception messages. other than that LGTM |
Adapt pluginmanager to the new world
Contacting community plugin authors: @sscarduzio, @lukas-vlcek, @mobz, @jprante, @royrusso, @andrewvc, @lmenezes, @karmi, @grantr, @shikhar, @grmblfrz, @yakaz, @synhershko, @medcl, @chytreg, @imotov, @duydo, @carrot2, @wikimedia, @kzwang, @YannBrrd, @NLPchina, @codelibs Hi all Just to let you know about a breaking change coming to plugins in 2.0. Each plugin will require a top-level Also, site plugins will need to have a |
@sscarduzio, @lukas-vlcek, @mobz, @jprante, @royrusso, @andrewvc, @lmenezes, @karmi, @grantr, @shikhar, @grmblfrz, @yakaz, @synhershko, @medcl, @chytreg, @imotov, @duydo, @carrot2, @wikimedia, @kzwang, @YannBrrd, @NLPchina, @codelibs Sorry: updated link (this is still in the process of being merged, but wanted to make sure you were made aware of it as soon as possible): |
Ack, thanks Clinton |
I saw this yesterday :) https://twitter.com/xbib/status/624236671551283201 Just a side note, for testing custom jvm plugins, it is also important to add the plugin class name to the key
Will a blog post follow to instruct the new plugin authoring? |
@clintongormley I'm not sure, maybe they are not important, maybe I'm too lazy to work through the stuff and submit pull requests. I can't even properly document my plugins for myself or write blog posts :( I know it's really a shame. |
👍 |
Ok. I'll release a new version asap. :-) Le sam. 25 juil. 2015 à 23:03, leonardo menezes notifications@github.com
|
Well noted. Thank @clintongormley for your information :-) |
@clintongormley @rmuir @imotov where are the Cache, CacheBuilder & ElasticsearchIllegalArgumentException gone ? |
@YannBrrd Cache/CacheBuilder classes are part of Guava, and you can use the dependency package of Guava, |
Nice thanks ! Le dim. 13 sept. 2015 12:34, Jörg Prante notifications@github.com a
|
Hi guys, Readonly REST plugin is updated as well. 👍 https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin |
@jprante how do I fix the jar hell after adding guava as a dependency ? Integrations tests failing... /o\ Edit : My bad, was fixed as per ES issue |
Now that plugins have some structure / e.g. required descriptor file, make pluginmanager strict and prevent mistakes from screwing up the installation.
Today it is still lenient and will basically accept any .zip or .jar and who knows what will happen. There is no sense in leniency, PluginService is going to reject any bullshit on startup.