Gradle series 3-groovy environment construction

Groovy environment installation

groovy download address

Unzip the compressed package, enter the bin directory, execute

./groovy -v

You will see the following information:
Insert picture description here

hello world

Still in the bin directory, use the built-in console to test, execute the following command:

./groovyConsole

You will see that the groovy console client starts.
Insert picture description here
There are two ways to output the log. As shown in the figure below, the first one can print directly using println, or you can use the java method System.out.println () to output the log.
Insert picture description here

Use inteliJ IDEA to create groovy project

Insert picture description here
After the selection, as shown below:
Insert picture description here
Click Next:
Insert picture description here

Published 159 original articles · 22 praises · 90,000+ views

Guess you like

Origin blog.csdn.net/ytuglt/article/details/104953915