본문 바로가기

Programming Language/Java & Scala

[Groovy]설치하고 helloworld 출력하기

 

준비물

 

시작

1. terminal을 켜서 sdk install groovy 입력
$ sdk install groovy                                                    127 ↵
==== BROADCAST =================================================================
* 07/03/18: Grails 3.3.3 released on SDKMAN! #grailsfw
* 06/03/18: Groovy 2.6.0-alpha-3 released on SDKMAN! #groovylang
* 04/03/18: Jbake 2.6.0 released on SDKMAN! #JBake
================================================================================

Downloading: groovy 2.4.14

In progress...

######################################################################## 100.0%

Installing: groovy 2.4.14
Done installing!


Setting groovy 2.4.14 as default.

 

2. groovy 콘솔 열기

$ groovyConsole

 

 

3. Groovy "Hello world"

 

반응형