build-parameters
build-parameters copied to clipboard
Allow for renaming of values
When working with builds, sometimes we cannot control the names that variables have. For instance, when running a build from Android Studio a flag is passed called "android.injected.invoked.from.ide".
It would be great to be able to read that into builds in a better way than miss-using groups:
group("android"){
group("injected"){
group("invoked") {
group("from") {
bool("ide") {
description.set("Whether or not the current build was started from within Android Studio")
defaultValue.set(false)
}
}
}
}
}
Would it be possible to simplify this in any way? Could build-parameters allow for renaming properties perhaps? For example, it would be nicer if we could define this like:
bool("invokedFromIde"){
source = "android.injected.invoked.from.ide"
//...
}