use compile configuration

replaced usages of deprecated groovy configuration by compile configuration