Building the package

Any changes to the code of any functions need to be packaged before they can be picked up by serverless framework. The command to build a package is:

./gradlew clean build

We will run this command at the root of the directory once. This assumes that the code for the handlers is ready from Chapter 3, Designing a Kotlin Serverless Application. If any change is to be done to that code, the preceding command to build a new package has to be run.

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.