Skip to content
/ kotlin-scratchpad Public template

A starter project using Kotlin and Gradle Kotlin DSL as build tool.

Notifications You must be signed in to change notification settings

sureshg/kotlin-scratchpad

Repository files navigation

🍷 Kotlin-ScratchPad

GitHub Workflow Status Kotlin release OpenJDK Version Docker Hub Sonar Style guide

Build

  • 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]

Run

$ docker pull sureshg/kotlin-demo:latest
$ docker run -it --rm --name kotlin-demo sureshg/kotlin-demo:latest