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运行。