How to set a javaagent in Eclipse with dependency from Gradle?

If I load the dependency for my Eclipse project with a Gradle script how can I set a javaagent. For a javaagent I need to set a fix path to a jar file in the launcher. If the dependencies of the Gradle script changed then this can be out of sync.

Is there any option to hold the launcher in Eclipse in sync with the Gradle script?