https://github.com/asacxyz/buildlambdadeploymentzip
Generates a ZIP file structured for AWS Lambda requirements.
https://github.com/asacxyz/buildlambdadeploymentzip
gradle gradle-plugin gradle-task kotlin plugin task
Last synced: 3 months ago
JSON representation
Generates a ZIP file structured for AWS Lambda requirements.
- Host: GitHub
- URL: https://github.com/asacxyz/buildlambdadeploymentzip
- Owner: asacxyz
- Created: 2024-12-23T21:23:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-31T21:01:52.000Z (over 1 year ago)
- Last Synced: 2025-08-29T05:31:52.415Z (11 months ago)
- Topics: gradle, gradle-plugin, gradle-task, kotlin, plugin, task
- Language: Kotlin
- Homepage: https://plugins.gradle.org/plugin/io.github.urlshortenerasacxyz.buildlambdadeploymentzip
- Size: 48.8 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# buildlambdadeploymentzip
## Default Gradle Application Setup
When creating a Gradle application via CLI, the `application` plugin is included by default. Running a build generates a ZIP file: `./app/build/distributions/app.zip`
Extracting it gives: `/app/lib/{JARS}`
This structure works locally but is incompatible with AWS Lambda.
## Build Lambda Deployment ZIP
### Purpose
This plugin adjusts the ZIP structure for AWS Lambda deployment.
### Usage
Run: `./gradlew buildLambdaDeploymentZIP`
The ZIP file will be generated in the project root: `./app.zip`
Extracting it gives: `/lib/{JARS}`
## AWS Lambda Upload
1. Add the **Build Lambda Deployment ZIP** plugin to your project.
2. Run: `./gradlew buildLambdaDeploymentZIP`
3. Upload `app.zip` to AWS Lambda.