Skip to content

Boilerplate code for simple Kotlin project with Gradle build.

Notifications You must be signed in to change notification settings

jasoet/kotlin-gradle-boilerplate

Repository files navigation

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 [email protected]:jasoet/kotlin-gradle-boilerplate.git ${YOUR_PROJECT_NAME}
$ cd ${YOUR_PROJECT_NAME}
$ ./gradlew clean build

About

Boilerplate code for simple Kotlin project with Gradle build.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages