I know that we can customize the plugin.script.roots variable to support the autocomplete script search. This is also mentioned in the docs here:
https://scriptrunner.adaptavist.com/6.16.0/jira/#_script_root_search
I can use the below configuration to change that script root
// under build/plugins/plugin[jira-maven-plugin]/configuration
<systemPropertyVariables> <plugin.script.roots>${project.basedir}/src/main/groovy</plugin.script.roots></systemPropertyVariables>
However, this seems to only work in local dev environment.
When the plugin gets build into a jar package and uploaded into an online environment. The above config doesn't work.
I understand I can change the JVM argument to support that, but, by all means, in the prod, all the groovy classes and scripts are inside the jar package.
So my questions is, is it possible to support the script root search autocomplete to use all scripts inside my plugin?