{"id":18127695,"url":"https://github.com/importre/aws-sam-gradle-plugin","last_synced_at":"2025-08-11T09:16:54.976Z","repository":{"id":146554387,"uuid":"172889243","full_name":"importre/aws-sam-gradle-plugin","owner":"importre","description":":shipit: Gradle plugin to bind aws-sam-cli","archived":false,"fork":false,"pushed_at":"2019-04-26T09:33:12.000Z","size":71,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T07:26:16.750Z","etag":null,"topics":["aws","gradle","kotlin","kotlin-dsl","sam","serverless"],"latest_commit_sha":null,"homepage":"https://plugins.gradle.org/plugin/aws.sam","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/importre.png","metadata":{"files":{"readme":"readme.adoc","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-02-27T09:55:52.000Z","updated_at":"2020-07-13T13:28:41.000Z","dependencies_parsed_at":"2023-06-26T00:52:56.318Z","dependency_job_id":null,"html_url":"https://github.com/importre/aws-sam-gradle-plugin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/importre/aws-sam-gradle-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/importre%2Faws-sam-gradle-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/importre%2Faws-sam-gradle-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/importre%2Faws-sam-gradle-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/importre%2Faws-sam-gradle-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/importre","download_url":"https://codeload.github.com/importre/aws-sam-gradle-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/importre%2Faws-sam-gradle-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269857731,"owners_count":24486396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","gradle","kotlin","kotlin-dsl","sam","serverless"],"created_at":"2024-11-01T09:22:13.001Z","updated_at":"2025-08-11T09:16:54.966Z","avatar_url":"https://github.com/importre.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"////\nMarked Style: asciidoctor-default\nCustom Processor: true\nCustom Preprocessor: false\n////\n// :author: Jaewe Heo\n// :email: jaeweheo@gmail.com\n:toc:\n:toclevels: 4\n:awscli: https://github.com/aws/aws-cli\n:aws-sam-cli: https://github.com/awslabs/aws-sam-cli\n:configuration: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html\n:importre-gradle-plugin: https://github.com/importre?utf8=%E2%9C%93\u0026tab=repositories\u0026q=gradle+plugin\u0026type=\n:shadow: https://imperceptiblethoughts.com/shadow/\n:minimize: https://imperceptiblethoughts.com/shadow/configuration/minimizing/\n\n= AWS SAM Gradle Plugin\n\n{importre-gradle-plugin}[image:https://img.shields.io/badge/importre-gradle%20plugin-informational.svg[alt=importre.gradle]]\n\nGradle plugin to bind link:{aws-sam-cli}[aws-sam-cli]\n\n== Prerequisites\n\n* Gradle 5.3 ⬆️\n* Python (for ``link:{awscli}[awscli]``, ``link:{aws-sam-cli}[aws-sam-cli]``)\n* ``link:{configuration}[aws configure]`` (for deployment)\n* Docker (for local development)\n\n== Usage\n\n.build.gradle.kts\n[source, kotlin, linenums]\n----\nplugins {\n    id(\"aws.sam\") version \"$version\"     // \u003c1\u003e\n}\n\nsam {\n    bucket = \"your_bucket_name\"          // \u003c2\u003e\n    stack = \"your_stack_name\"            // \u003c3\u003e\n    template = file(\"your_template.yml\") // \u003c4\u003e\n}\n----\n\u003c1\u003e See link:https://plugins.gradle.org/plugin/aws.sam[latest version]\n\u003c2\u003e AWS S3 Bucket Name\n\u003c3\u003e AWS CloudFormation Stack Name\n\u003c4\u003e ``template.yml`` for SAM\n\nAnd then, run link:#tasks[a task] you want\n\n\n=== Tasks\n\n==== link:https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-local-start-api.html[``runLocalStartApi``]\n\n* runs ``sam local start-api``\n* depends on ``clean`` and ``build``\n\n\n==== link:https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-package.html[``packageSamApp``]\n\n* runs ``sam package``\n* depends on ``clean``, ``build`` and ``makeBucket``\n\n==== link:https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-deploy.html[``deploySamApp``]\n\n* runs ``sam deploy``\n* depends on ``packageSamApp``\n\n==== ``build``\n\n* finalized by link:{shadow}[``shadowJar``] task\n** Check the fat jar (``$buildDir/libs/${project.name}-all.jar``)\n\nIf you'd like to minimize ``jar``, use link:{minimize}[`tasks.shadowJar.minimize`]\n\n.build.gradle.kts example\n[source, kotlin, linenums]\n----\ntasks {\n    shadowJar {\n        minimize {\n            exclude(dependency(\"joda-time:.*:.*\"))\n        }\n    }\n}\n----\n\n\n== References\n\n* link:https://github.com/importre/aws-sam-gradle-plugin/tree/master/sample[Sample Directory]\n* link:https://speakerdeck.com/importre/kotlin-gradle-and-aws-sam[Speakerdeck :kr:]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimportre%2Faws-sam-gradle-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimportre%2Faws-sam-gradle-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimportre%2Faws-sam-gradle-plugin/lists"}