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中。
Groovy, a creative and innovative project

JAX 是德国非常重要的Java conference。每一年, the organizers are running a contest to select the most innovative and creative projects. From over 40 proposals, the jury selected only ten nominees. Although great projects were selected, like the Matisse GUI builder in NetBeans, or the Nuxeo Enterprise Content Management solution, Groovy won the first prize! It is a great honor and a huge pleasure for us to receive such a prize, especially knowing the cool projects we were competing with, or the past winners like the Spring framework.
Dierk König, author of the best-selling "Groovy in Action" book, received the prize in the name of the Groovy community, after having presented several sessions on Groovy at this conference. This award proves and reaffirms how innovative, creative and influential the Groovy project is for the Java community.
Come and meet the Groovy and Grails developers at the Grails eXchange conference, featuring dedicated tracks on Groovy, Grails, Java EE and Web 2.0.
align=center!|align=center!align=center!align=center!|align=center!
|
"Groovy is like a super version of Java. It can leverage Java's enterprise capabilities but also has cool productivity features like closures, builders and dynamic typing. If you are a developer, tester or script guru, you have to love Groovy."
|
SamplesA 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 align=left,hspace=8,vspace=8! User Guide align=left,hspace=8,vspace=8! Cookbook Examples |
align=left,hspace=8,vspace=8! Developer Guide align=left,hspace=8,vspace=8! Testing Guide align=left,hspace=8,vspace=8! Advanced Topics |
Modules [more|Modules">more]
The following modules and contributions are currently available:- COM Scripting — script Windows ActiveX and COM components with Groovy
- Gant
- GFreeMarker — an integration of the FreeMarker template engine for Groovy
- Google Data Support — makes using the Google Data APIs easier from within Groovy
- Gram — a simple xdoclet-like tool for processing doclet tags or Java 5 annotations
- GraphicsBuilder — GraphicsBuilder is a Groovy builder for Java 2D
- Grapplet
- Griffon — Dekstop Enhancements for Groovy
- Groosh — Provides a shell-like capability for handling external processes.
- Groovy Jabber-RPC — allows you to make XML-RPC calls using the Jabber protocol
- GroovyJMS
- GroovyLab — Provides a domain specific language (DSL) for math engineering (matlab-like syntax).
- Groovy Monkey — is a dynamic scripting tool for the Eclipse Platform
- GroovyRestlet — Groovy DSL for constructing Restlet application
- Groovy Science
- Groovy SOAP — create a SOAP server and make calls to remote SOAP servers using Groovy
- GroovySWT — a wrapper around SWT, the eclipse Standard Widget Toolkit
- GroovyWS — GroovySOAP replacement that uses CXF and Java5 features
- GSP — means GroovyServer Pages, which is similar to JSP (JavaServer Pages)
- GSQL — supports easier access to databases using Groovy
- HTTP Builder — provides a convenient builder API for complex HTTP requests
- JideBuilder — JideBuilder is a Groovy builder for the open source JIDE Common Layer
- MetaBuilder — MetaBuilder is a builder that builds builders.
- Native Launcher — a native program for launching groovy scripts
- Proxy-o-Matic — Proxy-o-Matic lets you create dynamic proxies fast and in an homogeneous way
- Windows NSIS-Installer — a Windows-specific installer for Groovy
- Windows Services — framework for Groovy-based WinNT (Windows) Services
- WingSBuilder — WingsBuilder is a Groovy builder for the wingS Framework
- XMLRPC — allows you to create a local XML-RPC server and/or to make calls on remote XML-RPC servers
- GroovyFX — GroovyFX provides a Groovy binding for JavaFX 2.0.
- Gaelyk — Gaelyk is a lightweight Groovy toolkit for developing and deploying Groovy applications on Google App Engine.
- GMaven
- Groovy Transforms — Provides additional AST Transformations
- Grails — a Groovy-based web framework inspired by Ruby on Rails
- GORM — the Grails Object-Relational Mapping persistence framework
- Griffon — a Groovy-based desktop framework inspired by Grails
- GroovyPlugin — A Groovy plugin for JSPWiki
- OCM Groovy — A Object Content Mapping implemented in Groovy leveraging the Java Content Repository (JCR)
- Tellurium — A test framework built on top of the Selenium test framework implemented in Groovy
- Gradle — The next generation build system
- GPars — A Groovy concurrency/parallelism library
- CodeNarc — Static analysis for defects, bad practices, inconsistencies and style issues in Groovy code.
- GroovyServ — GroovyServ makes Groovy’s startup time much faster, by pre-invoking Groovy as a server.
- GBench — A benchmarking framework 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:
- the latest posts from our mailing-lists
- the latest commits to our SVN trunk
- the buzz around Groovy in the blogosphere
And below, you will find the latest announcements: