You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2022. It is now read-only.
The latest version of the Spring Framework provides first-class support for Kotlin.
4
+
For Kotlin users of Spring, the Spring Cloud GCP libraries work out-of-the-box and are fully interoperable with Kotlin applications.
5
+
6
+
For more information on building a Spring application in Kotlin, please consult the https://docs.spring.io/spring/docs/current/spring-framework-reference/languages.html#kotlin[Spring Kotlin documentation].
7
+
8
+
=== Prerequisites
9
+
10
+
Ensure that your Kotlin application is properly set up.
11
+
Based on your build system, you will need to include the correct Kotlin build plugin in your project:
Depending on your application's needs, you may need to augment your build configuration with compiler plugins:
17
+
18
+
* https://kotlinlang.org/docs/reference/compiler-plugins.html#spring-support[Kotlin Spring Plugin]: Makes your Spring configuration classes/members non-final for convenience.
19
+
* https://kotlinlang.org/docs/reference/compiler-plugins.html#jpa-support[Kotlin JPA Plugin]: Enables using JPA in Kotlin applications.
20
+
21
+
Once your Kotlin project is properly configured, the Spring Cloud GCP libraries will work within your application without any additional setup.
22
+
23
+
== Sample
24
+
25
+
A https://github.com/spring-cloud/spring-cloud-gcp/tree/master/spring-cloud-gcp-kotlin-samples/spring-cloud-gcp-kotlin-app-sample[Kotlin sample application] is provided to demonstrate a working Maven setup and various Spring Cloud GCP integrations from within Kotlin.
0 commit comments