adapted for groovy & gradle as build tool