switched groovy for the version with invoke dynamic support, as supporting old java versions is no priority here