Using extensions, referencing the value via “project.myblock.myMainClass” should work. Can you tell us more details about where you use this reference? What do you mean with “it’s not working”? I suppose, that you reference the property before it is set.
btw. You noticed the typo in your sample code?
project.extensions.creaet
should be
project.extensions.create
To make your posts more readable it would be very helpful to put your sample code in a <code> </code> section.
i can access the extension object only in th apply method… but i have written a configureRun(project) and inside that i am trying to access the extension object the object is null!
i have tried both extension and convenstions but its not working. Not sure why the value is null when i move it to configureRun() method. i can see i can get the value in apply method.