It should work if the current scope is the project...
# gradle
e
It should work if the current scope is the project. If the scope is a task, then given that tasks have extra properties too, you’ll be getting the prop from the task, not the project.