I have no idea about Micronaut. But typically IoC requires that the IoC container manages the lifecycle of objects. But while you can give instances to Gradle you usually should not, but let Gradle create them which then also adds some capabilities like extension awareness.
If Micronaut can inject into already built instances, you could surely do that. But Gradle will not find Micronaut beans and inject them.