distribute for groovy