Compiling 64-bit on WIndows

I’m struggling to find a way to compile anything other than a 32 bit exe with Gradle on Windows.
I’ve been looking around for the last few weeks for any info on how to compile 64 bit applications with Gradle but found nothing of use.

Has anyone had any luck with this?

Thanks