Skip to content

A Kotlin starter for Spring Boot web applications

Notifications You must be signed in to change notification settings

MathisGuillet1/kotlin-starter

Repository files navigation

Kotlin starter

This project provides a template to bootstrap projects built with Spring Boot and Kotlin with multi module structure.

Code style

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.

Build the project

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

Structure

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")
}

About

A Kotlin starter for Spring Boot web applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages