⬆️ ⬇️

Groovy release 1.7

Groovy development team and SpringSource after two beta versions and two release candidates announced the release of the final version of Groovy 1.7. Over the years of its existence, groovy has developed its own community of developers, several fairly large projects have been implemented: the Grails framework, Griffon, Gant and Gradle, Gaelyk - the Google APP Engine toolkit, etc.



Main innovations:

* Support for static inner classes:



class myClass {

static class NestedClass {}

}



new myClass.NestedClass()



* Anonymous inner classes:



boolean called = false



Timer timer = new Timer()

timer.schedule(new TimerTask() {

void run() {

called = true

}

}, 0)

sleep 100



assert called



Also improved:

* Improved Grape (system modules);

* AST Viewer and AST Builder to work with an abstract syntax tree;

* Annotations are now also applicable to packages, imports, and variable declarations;

* Completely rewritten GroovyScriptEngine;

* Improvements GroovyConsole: display line numbers, a new output window;

* New features when working with SQL, including transaction support;

')

Project home page: Groovy

Download: Groovy 1.7

Full release notes

Link to news: springsource blog

Source: https://habr.com/ru/post/79054/



All Articles