test report in build/reports/tests/test/index.html
$ ./gradlew testStarting a Gradle Daemon (subsequent builds will be faster)
> Task :compileJavaNote: Creating bean classes for 1 type elementswarning: unknown enum constant When.MAYBE reason: class file for javax.annotation.meta.When not found1 warningBUILD SUCCESSFUL in 7s4 actionable tasks: 4 executed
Deploy via AWS Console
Create a function in AWS
Author from scratch
Basic information:
function name: micronaut-lambda-simple
runtime: Java 11 (Corretto)
architecture: x86_64
permissions:
execution role: Create a new role with basic Lambda permissions
creates an execution role: micronaut-lambda-simple-role-<random>
e.g., micronaut-lambda-simple-role-b2fxbj9z
contains a policy: AWSLambdaBasicExecutionRole-<random>
Create an executable jar including all dependencies
gradlew shadowJar
fat/uber jar created in build/libs/
$ ./gradlew shadowJarStarting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for detailsBUILD SUCCESSFUL in 7s3 actionable tasks: 1 executed, 2 up-to-date
$ ls build/libs/micronaut-lambda-0.1-all.jar