How to read gradle.properties from buildsrc

Hello,

I have a gradle.properties with test data:
name=test
In build.gradle, I can “println name” successfully. However, I can’t use same way in buildsrc/src/main/groovy/hello.groovy.

What’s the proper way to do this?

Thanks,

Hello,

I guess you are looking for something like : project.properties[‘name’].

Regards

it works. This is great!