Custom artifact/classpath for gradle application plugin?

Is there a way to have the application plugin use a custom artifact? Or to add additional configuration dependencies to the classpath?

I have a custom configuration called server. I would like all of the “server” dependencies to be added to the build/install/myProject/lib/ directory when I run the installDist task.

The reason I’m trying to do this is because our “compile” classpath contains only the subproject jars. This allows us to store the libs on the server to reduce the deployment time. We send over the slim war, unpack, add the libs, and reassemble the war on the server. However I would like this application build to include all dependencies.