IDEA-89651 NPE in external build with Groovy