Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Groovy ...

  • 是一个基于Java虚拟机的敏捷动态语言
  • 构建在强大的Java语言之上 并添加了像Python,Ruby和Smalltalk等语言中的高效特性
  • 为Java开发者提供了现代最流行的编程语言特性,并且几乎是零学习成本。
  • 支持DSL(Domain Specific Languages领域定义语言)和其它简洁灵活的语法,让你的代码变得易于阅读和维护。
  • makes writing shell and build scripts easy with its powerful processing primitives, OO abilities and an Ant DSL
  • 在开发Web,GUI,数据库或控制台程序时 通过减少框架性代码 大大提高了开发者的生产力。
  • 支持单元测试和模拟,可以让开发者简单的进行测试
  • 无缝集成 所有已经存在的 Java对象和类库
  • 直接编译成Java字节码,可以方便的是用于Java中。


JAX 是德国十分重要的Java技术会议(Java conference),每一年该组织都会召开会议评选最具创新精神的项目,评选委员会从40个提名项目中选择十个候选项目,许多优秀项目如Matisse GUI builder(NetBeans的一个插件,用于构建GUI程序)、Nuxeo(企业级内容管理解决方案)等都入围候选,最后Groovy赢得了1等奖!这是一个崇高的荣誉,我们感到非常高兴,特别是和许多非常优秀的项目一起竞赛。另外该奖项的上一期胜出者是Spring framework。
还有,由Dierk König创作出版的畅销书------《Groovy in Action》,也会作为奖品赠予Groovy社团,随后JAX将单独设置Groovy主题的会议进行颁奖。这些奖项证明并肯定了Groovy的创新价值,并说明Groovy在Java社团有不小的影响力

Come and meet the Groovy and Grails developers at the Grails eXchange conference, 该会议专注于Groovy的发展、Grails以及JavaEE和Web2.0。



A simple hello world script:

A more sophisticated version using Object Orientation:

Leveraging existing Java libraries:

On the command line:


Documentation [more|Documentation">more]

align=left,hspace=8,vspace=8! Getting Started Guide
How to install and begin using Groovy as well as introductory tutorials.

align=left,hspace=8,vspace=8! User Guide
Provides information about using the Groovy language including language facilities, libraries and programming guidelines.

align=left,hspace=8,vspace=8! Cookbook Examples
Illustrates larger examples of using Groovy in the Wild with a focus on applications or tasks rather than just showing off the features, APIs or modules.

align=left,hspace=8,vspace=8! Developer Guide
Contains information mainly of interest to the developers involved in creating Groovy and its supporting modules and tools.

align=left,hspace=8,vspace=8! Testing Guide
Contains information of relevance to those writing developer tests or systems and acceptance tests.

align=left,hspace=8,vspace=8! Advanced Topics
Covers topics which you don't need to worry about initially when using Groovy but may want to dive into to as you strive for Guru status.

Modules [more|Modules">more]

The following modules and contributions are currently available:

  • COM Scriptingscript Windows ActiveX and COM components with Groovy
  • Gant
  • GFreeMarkeran integration of the FreeMarker template engine for Groovy
  • Google Data Supportmakes using the Google Data APIs easier from within Groovy
  • Grama simple xdoclet-like tool for processing doclet tags or Java 5 annotations
  • GraphicsBuilderGraphicsBuilder is a Groovy builder for Java 2D
  • Grapplet
  • GriffonDekstop Enhancements for Groovy
  • GrooshProvides a shell-like capability for handling external processes.
  • Groovy Jabber-RPCallows you to make XML-RPC calls using the Jabber protocol
  • GroovyJMS
  • GroovyLabProvides a domain specific language (DSL) for math engineering (matlab-like syntax).
  • Groovy Monkeyis a dynamic scripting tool for the Eclipse Platform
  • GroovyRestletGroovy DSL for constructing Restlet application
  • Groovy Science
  • Groovy SOAPcreate a SOAP server and make calls to remote SOAP servers using Groovy
  • GroovySWTa wrapper around SWT, the eclipse Standard Widget Toolkit
  • GroovyWSGroovySOAP replacement that uses CXF and Java5 features
  • GSPmeans GroovyServer Pages, which is similar to JSP (JavaServer Pages)
  • GSQLsupports easier access to databases using Groovy
  • HTTP Builderprovides a convenient builder API for complex HTTP requests
  • JideBuilderJideBuilder is a Groovy builder for the open source JIDE Common Layer
  • MetaBuilderMetaBuilder is a builder that builds builders.
  • Native Launchera native program for launching groovy scripts
  • Proxy-o-MaticProxy-o-Matic lets you create dynamic proxies fast and in an homogeneous way
  • Windows NSIS-Installera Windows-specific installer for Groovy
  • Windows Servicesframework for Groovy-based WinNT (Windows) Services
  • WingSBuilderWingsBuilder is a Groovy builder for the wingS Framework
  • XMLRPCallows you to create a local XML-RPC server and/or to make calls on remote XML-RPC servers
  • GroovyFXGroovyFX provides a Groovy binding for JavaFX 2.0.
  • GaelykGaelyk is a lightweight Groovy toolkit for developing and deploying Groovy applications on Google App Engine.
  • GMaven
  • Groovy TransformsProvides additional AST Transformations

  • Grailsa Groovy-based web framework inspired by Ruby on Rails
  • GORMthe Grails Object-Relational Mapping persistence framework
  • Griffona Groovy-based desktop framework inspired by Grails
  • GroovyPluginA Groovy plugin for JSPWiki
  • OCM GroovyA Object Content Mapping implemented in Groovy leveraging the Java Content Repository (JCR)
  • TelluriumA test framework built on top of the Selenium test framework implemented in Groovy
  • GradleThe next generation build system
  • GParsA Groovy concurrency/parallelism library
  • CodeNarcStatic analysis for defects, bad practices, inconsistencies and style issues in Groovy code.
  • GroovyServGroovyServ makes Groovy’s startup time much faster, by pre-invoking Groovy as a server.
  • GBench — The benchmarking module for Groovy
  • GProf — The profiling module for Groovy

Enjoy making your code groovier !!!!

Latest news

If you wish to stay up-to-date with our vibrant community, you can learn more about:

And below, you will find the latest announcements:

The Groovy development team is happy to announce the joint releases of the Groovy 2.4.1 and Groovy 2.3.10 of the Groovy programming language for the Java platform.

Both releases are bug fix releases, and while Groovy 2.4.1 is the latest official stable branch, we thought it might be helpful to some projects who are still on the 2.3.x line to get a final release for that branch. But going forward, the 2.3.x branch won’t see any upcoming release.

You can learn more about all the tickets closed by reading:

For reference, you can also read the release notes of Groovy 2.4 if you haven't had a chance to since the announcement.

Head over to the download section of the new Groovy website to download the binary distribution, or update your dependencies accordingly with those new version numbers.

Thanks a lot for all those who contributed to this release!

Groovy 2.4 released

The Groovy team is happy to announce the release of Groovy 2.4.0!

The big highlight of this release is the Android support, which allows developers to write Android applications fully using Groovy, with much less boilerplate code than raw Java.
The team also focused on various improvements in terms of performance, smaller bytecode generation, or memory consumption.
Other interesting aspects worth noticing in this release are:
  • traits can use the @SelfType annotation with static type checking enabled to restrict to what classes traits can be applied
  • GDK methods improvements
  • some refinements to existing AST transformations
  • further Groovysh improvements as well.
Please have a look at the full release notes for Groovy 2.4 to know more about the new features and all the interesting tickets closed.
You can have a look at the 2.4 changelog on the new Groovy website too.
And then, just go grab this release while it's hot!
Thanks a lot to all those who contributed to this release, whether through bug reports, but also with documentation or code contributions through pull requests. All your help is warmly welcome!
Your support of Groovy and its ecosystem is what makes Groovy so strong, and what will allow it to continue making us all more productive for the next decade!
Keep on groovy'ing!

  • No labels