Location of assembled jar when using installDist

I would like the assembled jar of my application to be located in build/install/projectName instead of build/install/projectName/lib when running installDist.

Is there a way to do this?

I’m using the application plugin. The dependencies used by the application must remain in build/install/projectName/lib though.