Setting Up Launch4j - acrimi/Raven GitHub Wiki

Creating executables for your game can be accomplished via the Launch4j library and its accompanying gradle plugin.

To add Launch4j to your project, simply apply the plugin in the gradle file for the pc module of your project:

plugins {
    id 'application'
    ...
    id 'edu.sc.seis.launch4j' version '2.5.0'
}

Full configuration options are detailed on the gradle plugin's readme, but it's a good idea to include the following at a minimum:

def name = "My Game"
def versionName = "1.0"
launch4j {
    mainClassName = application.mainClassName
    outfile = "${name}.exe"
    fileDescription = name
    productName = name
    version = versionName
}