Groovy introduction

Lean the JVM Language ```Groovy```

chemex

To be a introduction of Groovy

quick start

install

Homebrew

brew install groovy

download is very slowly

echo 'export PATH="/usr/local/opt/openjdk/bin:$PATH"' >> ~/.bash_profile

groovy version(3.0.3) and dependency openjdk(openjdk-13.0.2)。 not installed after groovy down. because

Maybe impact local java enviroment witch had been installed JDK8(Oracle) and openjdk(14)

verify

groovy -version

Groovy Version: 3.0.3 JVM: 1.8.0_181 Vendor: Oracle Corporation OS: Mac OS X

But the offical site say depend on JDK9 +

Differences with Java

Default imports

Multi-methods

Array initializers

Package scope visibility

ARM blocks

quote

Tags