ext and code block's meaning in the gradle file
问题 ext { springVersion = "3.1.0.RELEASE" emailNotification = "build@master.org" } Above code is the snippet of build.gradle I understand that call ext method with { } closure parameter. it's right? So I think gradle is accessing springVersion and emailNotification. I'm gonna verify my assumption with below code def ext(data) { println data.springVersion } ext { springVersion = "3.1.0.RELEASE" emailNotification = "build@master.org" } but run that code below Error occured. groovy.lang