Groovy&开发环境

Jenkinsfile与Groovy
本文介绍了Jenkinsfile使用的开发语言Groovy,一种为Java平台设计的强大的、可选类型的语言,具备静态类型和编译能力。Groovy能提高开发者生产力,并支持脚本编写、DSL创建、元编程等功能。此外,还提供了Groovy在不同IDE中的支持情况及如何使用IntelliJ IDEA进行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.

EditorSupport levelSyntax highlightingCode completionRefactoring

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

 

转载于:https://www.cnblogs.com/lightsong/p/8490963.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值