Convert multiline and commented groovy scripts into one line of code