By default Groovy is not included within any release of Java. Due to this it means that you would need to download the relevant files and place these within Jira/lib. Below are the methods of how to install.
To our knowledge it is currently not possible to install Groovy directly into Java |
If you have ScriptRunner installed then you would not need to include these files within jira-install/lib as JEMH is able to utilise the Groovy version that is bundled within ScriptRunner. |
Download the Groovy distribution (must contain an embeddable runtime .jar file) - https://archive.apache.org/dist/groovy/3.0.0-alpha-1/distribution/apache-groovy-binary-3.0.0-alpha-1.zip
Extract the contents of the zip file
Copy ./groovy-3.0.0-alpha-1/embeddable/groovy-all-3.0.0-alpha-1.jar and place within <jira_install_directory>/lib folder
Currently this method is not working correctly with Java 17 within JEMH 4.1.2+, as it is resulting in an exception when scripting features are used. We will update this page with the fixed version. |
Download the Relevant Groovy files, can be downloaded by using the following:
wget https://repo1.maven.org/maven2/org/apache/groovy/groovy/4.0.17/groovy-4.0.17.jar wget https://repo1.maven.org/maven2/org/apache/groovy/groovy-xml/4.0.17/groovy-xml-4.0.17.jar wget https://repo1.maven.org/maven2/org/apache/groovy/groovy-jsr223/4.0.17/groovy-jsr223-4.0.17.jar |
Note: Updated above links to download the current latest Groovy version.
Copy these downloaded files into <jira_install_directory>/lib folder
Restart Jira
Once installed you should then see that Groovy is listed as a Detected Script Engine within JEMH > Extensions > Detected Script Engines.