About Me

My photo
Author of Groovy modules: GBench, GProf, Co-author of a Java book パーフェクトJava, Game Developer at GREE

Wednesday, May 4, 2011

Gj is updated!

I updated "Gj" today. "Gj" is a script to convert Groovy program to distribution format quickly, easily, and without any effort (please see also my previous post).


Updates are as follows:


1. Option to bundle Groovy
-bg/--bundlegroovy option has been added. You can use the option to bundle Groovy instead to specify Groovy libraries directly.
----
> cat src\PrintHello.groovy
println 'hello'


> groovy Gj.groovy -bg -s src -m PrintHello printhello.jar


> java -jar printhello.jar
hello
----


2. The default Java version for javac
The default java version for javac has been changed to be the same version on your system.


3. Option to print Gj version
-ver/--version option has been added. You can use the option to check the Gj version.
----
> groovy Gj.groovy -ver
Gj version: 11.05.05
----


You can download new version from here. Please try it out ;-)