Compile groovy templates only with release profile