This message was deleted.
# community-support
s
This message was deleted.
v
Iirc with something like
Copy code
configurations.implementation {
    dependencies.addLater(...)
}
or maybe with
Copy code
configurations.implementation {
    dependencies.whenObjectAdded(...)
}
c
Worth a shot, thanks!
Ok whenObjectAdded and addLater are part of DomainObjectCollection, will try to remember that for the future.
v
Ah, no, what you want is
Copy code
configurations.implementation {
    withDependencies { 
        ...       
    }
}
https://www.linen.dev/s/gradle-community/t/9561104/i-want-to-write-a-plugin-that-can-issue-deprecation-warnings#2df63f83-003e-47cb-9d76-32096c6ff2d7
withDependencies
directly checks what is declared and also allows you to add additional dependencies "lat minute" (i.e. right before the dependency resolution starts). This is what it was mainly introduced for.