Sebastien Leclerc Lavallee
03/12/2020, 4:33 PMbuild.gradle
script from groovy to kotlin. Inside one of my build, I have this:
allprojects {
ext.runProtoGen = { inPath, outPath, kotlinPackage = null, logLevel = null, inSubPath = null ->
[...]
}
}
How would I be able to do that with kotlin DSL ? Thanks 🙂tapchicoma
03/13/2020, 1:19 PMallprojects { subProject ->
subProject.ext["runProtoGen"] = { ... }
}
Sebastien Leclerc Lavallee
03/13/2020, 1:19 PMtapchicoma
03/13/2020, 1:21 PMval runProtoGen = project.ext["runProtoGen"] as (Some, Some) -> Some
Sebastien Leclerc Lavallee
03/13/2020, 1:21 PMtapchicoma
03/13/2020, 1:22 PMby extra
delegate, probably could be used as well