fixed newline issues
replaced usages of deprecated groovy configuration by compile configuration