Some of the corda-gradle plug-ins (e.g. cordformation) are using var fields for properties that are settable from the build scripts, e.g.
This should really use the lazy properties syntax as favoured by modern versions of gradle:
Note that there are also types such as ListProperty, MapProperty and so on that should be used for the respective types.
In order to make it all work, classes then need to be instantiated via the gradle object factory, e.g.:
Note that creating Node objects like this also gives them their own ext object, which can hide other ext objects such as the one belonging to the outer Cordform task. Accessing ext properties in your build.gradle file may therefore break unless you also explicitly qualify the ext object to specify which one you want to use, e.g. task.ext.