Groovy&開發環境


Jenkinsfile開發語言 -- Groovy

http://www.groovy-lang.org/

A multi-faceted language for the Java platform

Apache Groovy is a powerful, optionally typed and dynamic language, with static-typing and static compilation capabilities, for the Java platform aimed at improving developer productivity thanks to a concise, familiar and easy to learn syntax. It integrates smoothly with any Java program, and immediately delivers to your application powerful features, including scripting capabilities, Domain-Specific Language authoring, runtime and compile-time meta-programming and functional programming.

 

開發環境

http://groovy-lang.org/ides.html

IDE integration

The Groovy language is supported by lots of IDEs and text editors.

Editor Support level Syntax highlighting Code completion Refactoring

UltraEdit

 

Yes

No

No

Groovy Eclipse Plugin

 

Yes

Yes

Yes

IntelliJ IDEA

 

Yes

Yes

Yes

Netbeans

 

Yes

Yes

Yes

Groovy and Grails Toolsuite

 

Yes

Yes

Yes

Groovy Emacs Modes

 

Yes

No

No

TextMate

 

Yes

No

No

vim

 

Yes

No

No

 

https://www.jianshu.com/p/777cc61a6202

Step6:使用IntelliJ IDEA編輯Groovy##

自帶的編輯器畢竟太挫了,IntelliJ IDEA可以支持寫Groovy,不需要安裝任何東西。

新建一個Project,選擇Groovy,注意要選擇Project SDK和Groovy library。


項目名就叫HelloGroovy吧。


右鍵src新建一個Groovy文件,選擇Groovy Script。


文件名也叫HelloGroovy好了。


還是輸入<code>pritnln "Hello Groovy"</code>,CTRL + SHIFT + F10運行。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM