First they ignore you
then they ridicule you
then they fight you
then you win
    -- Mahatma Gandhi
Chinese => English     英文 => 中文             
随笔-162  评论-870  文章-0  trackbacks-0
由于这次发布的Groovy版本包含了很多Java5的特性,并修正(fix)了很多错误,且增添了许多新特性,1.1这个版本号已经无法反映这么多令人振奋的改进了,所以Groovy Team决定将本次发布的Groovy版本定为1.5。注意目前最新稳定版为Groovy1.5了,而非之前的Groovy1.0。

下载地址:http://dist.groovy.codehaus.org/distributions/groovy-binary-1.5.0.zip

附:朝花夕拾——Groovy & Grails

=======================================================

Last changed Dec 07, 2007 17:44 by glaforge

G2One, Inc., the Groovy & Grails professional services company, and the Groovy development team are proud to announce the release of Groovy 1.5.

Groovy is a dynamic language for the JVM that integrates seamlessly with the Java platform. It offers a Java-like syntax, with language features inspired by Smalltalk, Python or Ruby, and lets your reuse all your Java libraries and protect the investment you made in Java skills, tools or application servers. Groovy can be used for various purposes, from adhoc shell scripting leveraging Java APIs, to full-blown web applications built on Spring and Hibernate through the Grails web framework. It can also be integrated very easily in your applications to externalize business logic, create Domain-Specific Languages, or to provide templating, XML parsing capabilities, and much more.

This major release integrates features offered by Java 5: annotations, generics, static imports and enums, making Groovy the sole alternative dynamic language for the JVM that lets you leverage frameworks that use annotations like Spring's @Transactional or JBoss SEAM which both provide extended Groovy support, or generics to help JPA or Hibernate properly handle typed collections.

In this release, new meta-programming capabilities have been contributed thanks to the work of the Grails project developers, pursueing our symbiotic relationship. A few syntax enhancements have also found their way into it to help ease the development of Domain-Specific Languages. A great attention to performance improvements made this new version much snappier than before, as witnessed by a reports we had by teams working on mission-critical applications using Groovy as a business language.

Since Groovy 1.0, the team also worked on improving the tool chain by creating a joint Java / Groovy compiler to let you mix and match Groovy and Java classes in the same compilation step. A GroovyDoc equivalent to JavaDoc lets you document your Groovy classes. The rewritten interactive shell is now really interactive and provides useful command completions for making you more productive, and the Groovy Swing console has also been improved thanks to our talented Swing team and the help of Swing expert Romain Guy.

Apart from improvements or the creation of these new tools, you should have a look at JetBrains' JetGroovy, a fantastic Groovy and Grails plugin which provides advanced coding capabilities to IntelliJ IDEA:

  • syntax highlighting,
  • code completion,
  • scripts and unit tests running ability,
  • debugging capabilities,
  • and even refactorings!

Of course, if you're an Eclipse user, you can still use the Groovy Eclipse plugin, or Sun's work in progress NetBeans plugin for Groovy and Grails.

An upcoming article on InfoQ that will be published in the following days will detail the novelties of this new version in more depth. So, please stay tuned!
In the meantime, you can listen to the interview of Groovy Project Manager and G2One VP Technology Guillaume Laforge that was recorded at QCon 2007, in March, in London, or read G2One's team interview at JavaLobby.

I would like to thank everybody who was involved in this release in a way or another: the Groovy developers for their hard work, patch and documentation contributors, users reporting bugs or requesting new features or improvements, book authors.

Several well-known companies have put great efforts in helping us making Groovy what it is today:

  • IBM: Eclipse plugin improvements and upgrade to support this latest version of the language,
  • Oracle: JMX support improvements to call remote beans as if they were local,
  • Sun: Rooms for our developer meetings, and a wonderful 8-core 8-CPU machine for our high-load concurrency testing,
  • JetBrains: for the joint java/groovy compiler & their awesome plugin,
  • JBoss: for their help on ironing out our support for annotations and generics.

It would be impossible to list everybody, but you're all part of this effort, and you made the success of Groovy and the quality of this new milestone. Thanks and well done to you all!

You can read the detailed JIRA release notes of the changes since the last release candidate.

And now, just download Groovy 1.5 and give it a try: http://groovy.codehaus.org/Download

-
Guillaume Laforge
Groovy Project Manager
Vice-President Technology at G2One, Inc.
http://www.g2one.com


posted on 2007-12-08 09:50 山风小子 阅读(1764) 评论(15)  编辑  收藏 所属分类: Groovy & Grails

评论:
# re: Groovy1.5 正式发布![未登录] 2007-12-08 11:13 | agile
还纳闷呢,怎么一下变成1.5,多谢贡献 :)  回复  更多评论
  
# re: Groovy1.5 正式发布![未登录] 2007-12-08 13:29 | xiaoxiao
我晕
昨天刚学了groovy-1.1-rc-3
今天怎么出来了1.5正式版
o(∩_∩)o...哈哈  回复  更多评论
  
# re: Groovy1.5 正式发布![未登录] 2007-12-08 13:37 | xiaoxiao
上面写错了
我昨天刚下的groovy-1.1-rc-3
===
Groovy已经展露了下一代语言的王者风范
看来要好好的学一下了
  回复  更多评论
  
# re: Groovy1.5 正式发布! 2007-12-08 17:37 | gr8vyguy
wow,赶紧下  回复  更多评论
  
# re: Groovy1.5 正式发布! 2007-12-10 15:25 | zzz
我安装了1.5, 但是运行groovysh显示如下错误
java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
at groovy.lang.GroovySystem.<clinit>(GroovySystem.java:27)
at org.codehaus.groovy.runtime.Invoker.<init>(Invoker.java:38)
......
JAVA_HOME和GROOVY_HOME都设置了, 这是为什么啊。
我用的是jdk1.5, linux操作系统

以前装1.0的时候,下载的是zip压缩包,也出现过这个问题。后来下载了tar.gz压缩包,就好了。 但是1.5只提供了zip压缩包,是不是只能在windows下用啊
  回复  更多评论
  
# re: Groovy1.5 正式发布! 2007-12-10 19:35 | 山风小子
@zzz
请不要将groovy相关的Jar文件放到classpath中。
建议您看一下在下写的《Groovy轻松入门——搭建Groovy开发环境 》  回复  更多评论
  
# re: Groovy1.5 正式发布! 2007-12-12 18:02 | zzz
不行啊,我完全按照网站上的说明做的
只有1.0能运行, rc1,rc2,rc3,1.5都不能运行,不知道为什么  回复  更多评论
  
# re: Groovy1.5 正式发布! 2007-12-12 19:36 | 山风小子
@zzz
您用的JDK的版本是多少?
classpath是什么?
GROOVY_HOME是什么?

我来帮您看看吧 :)  回复  更多评论
  
# re: Groovy1.5 正式发布! 2007-12-12 20:57 | zzz
多谢了,呵呵。不过现在已经好了。
问题出在GROOVY_HOME, 以前我设置的是~/program/groovy-1.5.0/
现在改成了~/program/groovy-1.5.0
(把最后的一个/去掉了)
没想到一个斜杠引发一场血案。 我本来以为目录最后的/是可有可无的

我的jdk是jdk1.5.0_07,
CLASSPATH=~/workspace/protein_design/bin:.
(protein_design 是我自己的一些程序)  回复  更多评论
  
# 再次请教 2007-12-13 11:42 | zzz
关于String的split
在groovysh里面
groovy:000> def g="hello world"
===> hello world
groovy:000> g.split()
报错ERROR groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.tools.shell.Groovysh$_closure1.call() is applicable for argument types: (java.lang.String, java.lang.String) values: {"hello", "world"}

用g.split(" ")也不行

java里面本来就有一个 String[] split(String regex)
gdk里面写的是String[] split() Convenience method to split a string (with whitespace as delimiter) Like tokenize, but returns an Array of Strings instead of a List

为什么两个都不行啊  回复  更多评论
  
# re: Groovy1.5 正式发布! 2007-12-13 19:12 | 山风小子
groovy> def s = "a b"
groovy> s.split(" ")

Result: ["a", "b"]

我在Groovy Console运行成功的 :)

  回复  更多评论
  
# re: Groovy1.5 正式发布! 2007-12-13 20:22 | zzz
刚才试了一下, groovy console里面确实可以, groovysh就不行。可能groovysh里面有bug吧。
还有一个问题,就是perl里面有一个<>操作符,即可以从标准输入流进行输入(如果没有指定命令行参数),又可以从文件进行输入(如果指定了命令行参数),ruby也有类似的功能,用起来非常方便。 groovy里面有没有类似的功能?

《groovy入门经典》里面对输入的介绍只提到了System.in和File。

另外有没有比较活跃的中文groovy论坛?

多谢了!
  回复  更多评论
  
# re: Groovy1.5 正式发布![未登录] 2007-12-14 10:18 | agile
to zzz
目前有grails/groovy群
http://grails.group.javaeye.com/
和一个论坛:
http://grails.5d6d.com/  回复  更多评论
  
# re: Groovy1.5 正式发布! 2007-12-20 17:07 | groovycn.cn
http://www.groovycn.cn
中国,欢迎大家的光临和资料提供.
  回复  更多评论
  
# re: Groovy1.5 正式发布! 2007-12-20 21:38 | 山风小子
@groovycn.cn
网站做得不错 :)  回复  更多评论
  

标题  
姓名  
主页
验证码 *  
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
 
 
相关链接:
网站导航: