-
For building the executable jar, run
$ ./gradlew clean build # For checking dependency updates. # ./gradlew clean dependencyUpdates # For publishing to maven repo # ./gradlew clean publish # For publishing shaded jar # ./gradlew clean publish -Pshaded=true # For creating dist tar # ./gradlew clean distTar
-
For building and pushing
Docker
image, run# Image with tags as current artifact version and "latest" $ ./gradlew jib
🐳 [Docker Hub URL][docker-hub]
$ docker pull sureshg/kotlin-demo:latest
$ docker run -it --rm --name kotlin-demo sureshg/kotlin-demo:latest