A collection of Kotlin Spring patterns taken from real projects.
Please leave a Github issue.
- The
components/interesting
directory contains some examples of Kotlin's features - Example of common dependencies: spring-boot-web-app -> api -> (blog) <- blog-storage : (Container -> Web Component -> Domain <- Storage Details)
Components are defined in components
and executables are defined in containers
. Gradle ties them all together via Multi-Project builds (https://docs.gradle.org/3.3/userguide/multi_project_builds.html).
- Make a
settings.gradle
file:
touch settings.gradle
- Define a new project in the root
settings.gradle
file:
include 'components/blog'
- Make a directory matching the above:
mkdir -p components/blog
- drop a
build.gradle
file into thecomponents/blog
directory.
touch components/blog/build.gradle
- Include
components/blog
code into other projects:
dependencies {
compile(project(":components/blog"))
}