mirror of
https://github.com/v79/AWS-CDK-Gradle-Kotlin-Template.git
synced 2026-07-12 18:00:46 +01:00
Basic template for using AWS CDK (Java version) in a Kotlin Gradle project
- Kotlin 100%
| annotations | ||
| gradle/wrapper | ||
| Lambda | ||
| src/main/kotlin/org/liamjd/aws/cdk | ||
| .gitignore | ||
| build.gradle.kts | ||
| cdk.json | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| README.md | ||
| settings.gradle.kts | ||
Kotlin Gradle CDK Template
When using the AWS CDK example projects, all the samples are written in Java and built using maven. This template provides a starter project for writing in Kotlin, and building with gradle instead.
The project is split into two components - the main project, which holds the AWS Stack, and a submodule, which contains a very basic Lambda function.
The gradle run task is configured to be dependent on the shadowJar task of the Lambda submodule, so that the Lambda
is always recompiled before the CDK synthesis takes place (as cdk synth builds and executes the main project class).
As this relies on AWS CDK, you must have node installed.