Upgrade corda-gradle plug-ins to use lazy properties

Description

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.:

instead of

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.

Assignee

Unassigned

Reporter

Christian Sailer

Labels

None

Sprint

None

Epic Link

None

Priority

Medium

Engineering Teams

Kernel

Fix versions

Affects versions

None

Ported to...

None

Story Points / Dev Days

5

Build cut

None

Feature Team

Select team
Configure