Groovy&开发环境

 ̄綄美尐妖づ 提交于 2020-04-30 22:08:03

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

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!