Dependencies Hook + Custom Plugin + Java

I’m currently writing a custom gradle plugin in Java which enforces some conventions for packaging native artifacts. While the packaging part works great I’m also looking for a way to hook into the configurations dependencies resolving process. After all dependencies are resolved I want to trigger the extraction of the native parts of the jars into a certain directory.

Since I’m a gradle-newbee it would be great if somebody could provide a code snippet and point me to the right direction. All I’ve tried so far were some variations of the following code, but had no luck in resolving the paths to the downloaded/resolved jar files.

       .afterResolve(new Action<ResolvableDependencies>() {
            public void execute(ResolvableDependencies resolvableDependencies) {