/kotlin-gradle-boilerplate

Boilerplate code for simple Kotlin project with Gradle build.

Primary LanguageKotlin

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