「APACHE-GROOVY」- 环境安装

版本选择

Release notes for Groovy | https://groovy-lang.org/releases.html

各版本 Groovy 要求的 JVM 的版本 | System requirements
https://groovy.apache.org/download.html#requirements

Groovy	JVM Required (non-indy)	JVM Required (indy) *
5.0 (in alpha)	N/A	11
4.0	N/A	1.8+
3.0	1.8+	1.8+
2.5 - 2.6	1.7+	1.7+
2.3 - 2.4	1.6+	1.7+
2.0 - 2.2	1.5+	1.7+
1.6 - 1.8	1.5+	N/A
1.5	1.4+	N/A
1.0	1.4-1.7	N/A

环境安装

下载地址 | https://groovy.apache.org/download.html

with asdf

asdf plugin-list all | grep -i groovy
asdf plugin-add groovy
asdf list all groovy
asdf install groovy 2.4.21
asdf global groovy 2.4.21
groovy –version

for Build Tools

例如,针对 Maven 工具

<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>x.y.z</version>
<type>pom</type> <!-- required JUST since Groovy 2.5.0 -->