Slackbot
02/11/2024, 11:41 AMMohammed Mahmood Ahmed
02/11/2024, 11:44 AMVampire
02/11/2024, 2:38 PMoutputFileName
is a Property<String>
, there is for long a magic in Groovy DSL that you can use =
, but for Kotlin this was long not possible.
You need either to use .set(...)
or a recent enough Gradle version where the =
usage works for `Property`s.Vampire
02/11/2024, 2:38 PMMohammed Mahmood Ahmed
02/11/2024, 4:09 PMVampire
02/11/2024, 4:16 PMMohammed Mahmood Ahmed
02/11/2024, 4:16 PMVampire
02/11/2024, 4:17 PMMohammed Mahmood Ahmed
02/11/2024, 4:18 PMVampire
02/11/2024, 4:20 PMVampire
02/11/2024, 4:21 PM.set
instead of =
as I explained above.Mohammed Mahmood Ahmed
02/11/2024, 5:00 PMVampire
02/11/2024, 5:03 PM...Impl
is probably a bad idea though.
If outputFileName
is only available on BaseOutputVariantImpl
, but not on BaseOutputVariant
, then it just works in Groovy DSL due to its duck-typing.
But it would be a bad idea in Groovy DSL too, as it uses things that are not meant for your usage and could break in any patch version as it is an implementation detail you rely on.