Closed
Description
your documentation is contradictory
page below describes how to use Native (Java) Scripts in 5.0 which uses ScriptModule
https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting-native.html
here in this page https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_50_plugins.html
it indicates below
ScriptPlugin
Plugins that register custom scripts should implement ScriptPlugin and remove their onModule(ScriptModule) implementation.