Multiplatform web app, gradle target for production install?

I created a fresh project in IntelliJ - a multiplatform full stack web app. I’m wondering: which gradle target creates a final runnable product, that I can upload to a server and run (assuming Java is installed). In other words: something with all the dependencies jars, plus the compiled products?

I see a gradle target distTar that I thought might do it, but it appears to create a tar file with only the dependencies, not the classes from the project.