we want to check for project properties, we tried this:
def nodeNumber = project.property('node') ?: 1
This throws an error: Could not find property ‘node’ on project
How can I check for a property that doesn’t throw an error? I could do a
def nodeNumber = project.hasProperty('node") ? project.property['node'] : '1'
this works, but it’s kind of long winded, not DRY.
any better approach?