Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 1.03 KB

README.md

File metadata and controls

39 lines (32 loc) · 1.03 KB

Kotlin Gradle Boilerplate code

Build Status

Boilerplate code for gradle based Kotlin application.

Features

  • Kotlin/JVM
  • Kotlin Coroutine
  • Strict Kotlin enable allWarningsAsErrors
  • Unit test with Spek2, JUnit 5, Kluent and MockK
  • Static code check using Detekt
  • Code coverage using Jacoco
  • Logging with Logback
  • Gradle Kotlin DSL

Requirements

Install Java SDK 11

$ curl -s "https://get.sdkman.io" | bash
$ source "$HOME/.sdkman/bin/sdkman-init.sh"
$ sdk version
$ sdk install java

Install Gradle 5.3 or higher

$ sdk update
$ sdk install gradle

Usage

$ git clone git@github.com:jasoet/kotlin-gradle-boilerplate.git ${YOUR_PROJECT_NAME}
$ cd ${YOUR_PROJECT_NAME}
$ ./gradlew clean build