This project provides a template to bootstrap projects built with Spring Boot and Kotlin with multi module structure.
The code style follows the Kotlin official code conventions and are enforced by plugin Klint.
You can configure your IDE as described in the official coding conventions to enforce the rules when coding.
To build the project, you can run:
./gradlew build
To launch application, you can run:
./gradlew bootRun
You can build a docker image locally (or push to a registry) with jib:
./gradlew jibDockerBuild
Version management is handled in gradle version catalog.
Two gradle convention plugins are defined in the buildSrc
folder to share versions, repositories, configurations...
across all the submodules.
In any submodule you can add the convention plugin to inherit all configurations related to kotlin or spring and kotlin.
plugins {
id("kotlin-starter.spring-conventions")
// OR
id("kotlin-starter.kotlin-conventions")
}