compile Groovy code with InvokeDynamic support
use Profiles class instead of strings to activate profiles