Open musketyr opened 5 years ago
I see this ticket is open and under consideration. Is there a viable workaround in place until such a time that it is addressed? As described in the ticket, I'd like to declare packages to scan for a groovy function. (along the lines of what is already supported for Application context builder or MicronautTest)
Steps to Reproduce
com.example.foo
com.example.fn
using the GORM entity fromcom.example.foo
Expected Behaviour
Unless configured, the function will fail. But there should be way how to call
ApplicationContextBuilder.packages('com.example.foo')
from the function script which at the moment does not triggerAbstractExecutor.buildApplicationContext(context)
at all which is otherwise dedicated to this purpose like followingOne of the solutions would be to let the Groovy script take an advantage of
AbstractExecutor.buildApplicationContext(context)
or create a generic annotation which would be able to add additional packages for scanning and which can be applied on the package declaration of the Groovy script e.g.Actual Behaviour
There is no way how to set packages for scanning for Groovy function.
Environment Information