hdockter wrote: > > What I'm asking here is if you can provide such code ;). Or by what > other means can one recognizes which groovyc is used? I'm want to > release 0.1.4 within the next days and I would like to include this > feature. >
Ok, here comes "detector 1.0". :-) http://www.nabble.com/file/p17016198/detector-1.0.jar detector-1.0.jar Simply put it on the compile classpath and then compile any groovy code (empty file is good enough). If you get a message "groovyc version 1.6 (or higher) detected!", you can be sure that it's groovyc >= 1.6. If you don't get a message, then either it's groovyc < 1.6, or something about the global transform mechanism has changed (which might or might not happen until 1.6 final). If you need something more elaborate than this (e.g. a unit test that only succeeds when compiled with >= 1.6), just let me know. Cheers, Peter -- View this message in context: http://www.nabble.com/Building-Groovy-projects-with-Gradle-tp16926886p17016198.html Sent from the gradle-user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
