This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static groovyx.gpars.GParsPool.* | |
//Automates steps to colorized maven 3.2.5 described in http://aheritier.net/united-colors-of-maven/ | |
//requires groovy 2.x | |
//groovy https://gist.github.com/fbricon/5763949/raw/colorizedMaven [optional/path/to/maven/] | |
def M2_HOME = (args && args.length > 0)?args[0]:System.getenv()["M2_HOME"] | |
println "Adding colorized output to $M2_HOME" | |
if (!M2_HOME) { | |
println "The maven directory can not be found" |