Do I need to add new plugin's related info to kong-1.1.2-0.rockspec?

#1

After adding new plugin to /usr/local/share/lua/5.1/kong/plugins/,
No matter if I add new plugin’s related info to /usr/local/lib/luarocks/rocks/kong/1.1.2-0/kong-1.1.2-0.rockspec or not, the plugin works.

So what’s the purpose of kong-1.1.2-0.rockspec? Is it only to register bundled plugins?

If I add the plugin in kong.conf as below, don’t nedd to add it to rockspec?
plugins = bundled, new-plugin

BTW, plugin_map in kong/constants.lua deprecated already?

#2

The purpose of the rockspec is to allow a file to be installed via the luarocks utility. If you’re not using the utility, it’s not a strict necessity, but it’s always a good practice :slight_smile:

#3

Thanks for the answer.
Yep, I’m not using luarocks for this plugin.