This will build an application jar and a native version using GraalVM
./gradlew build nativeCompile
Remove nativeCompile if you don't have GraalVM installed or don't require a native image.
The default value for port is 9000
java -jar ./build/libs/socket-server-1.0-SNAPSHOT.jar [port]
Expand build/distributions/socket-server-1.0-SNAPSHOT.zip
or build/distributions/socket-server-1.0-SNAPSHOT.tar
cd build/distributions
unzip socket-server-1.0-SNAPSHOT.zip
cd socket-server-1.0-SNAPSHOT/bin
./socket-server [port]
./build/native/nativeCompile/socket-server [port]