diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 38f99bd4e..a59e2fa71 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,7 +61,7 @@ jobs: java-version: ${{ matrix.java }} cache: 'maven' - name: Build with Maven - run: mvn -Pbuild-without-spotbugs -B package --file pom.xml + run: mvn -Pbuild-without-spotbugs -B install --file pom.xml - name: Upload coverage to Codecov uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # 3.1.1 if: ${{ matrix.java == '11' }} # publish results once diff --git a/examples/README.md b/examples/README.md index c853937e0..f7e6fc620 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,5 +1,4 @@ ## aws-lambda-powertools-examples This directory holds example projects demoing different components of the Powertools for AWS Lambda (Java). - - +Each example can be copied from its subdirectory and used independently of the rest of this repository. \ No newline at end of file diff --git a/examples/pom.xml b/examples/pom.xml index 95de07209..ab61cf716 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -4,15 +4,11 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + software.amazon.lambda powertools-examples + 1.15.0 pom - - powertools-parent - software.amazon.lambda - 1.15.0 - - Powertools for AWS Lambda (Java) library Examples A suite of examples accompanying for Powertools for AWS Lambda (Java). @@ -32,32 +28,4 @@ true - - - - org.jacoco - jacoco-maven-plugin - - - - prepare-agent - - - true - - - - report - - report - - - true - - - - - - - \ No newline at end of file diff --git a/examples/powertools-examples-core/pom.xml b/examples/powertools-examples-core/pom.xml index e6ccd3918..9ce699c32 100644 --- a/examples/powertools-examples-core/pom.xml +++ b/examples/powertools-examples-core/pom.xml @@ -1,15 +1,19 @@ 4.0.0 + + software.amazon.lambda.examples + 1.15.0 powertools-examples-core jar - Powertools for AWS Lambda (Java) library Examples - Core - - powertools-examples - software.amazon.lambda - 1.15.0 - + Powertools for AWS Lambda (Java) library Examples - Core + + + 2.20.0 + 1.8 + 1.8 + @@ -118,4 +122,79 @@ + + + + jdk8 + + (,11) + + + 1.9.7 + + + + + org.aspectj + aspectjtools + ${aspectj.version} + + + + + + + + dev.aspectj + aspectj-maven-plugin + ${aspectj.plugin.version} + + ${maven.compiler.source} + ${maven.compiler.target} + ${maven.compiler.target} + + + software.amazon.lambda + powertools-tracing + + + software.amazon.lambda + powertools-logging + + + software.amazon.lambda + powertools-metrics + + + + + + + compile + test-compile + + + + + + + org.aspectj + aspectjtools + ${aspectj.version} + + + + + + + + diff --git a/examples/powertools-examples-idempotency/pom.xml b/examples/powertools-examples-idempotency/pom.xml index c872ee905..a0e50c85c 100644 --- a/examples/powertools-examples-idempotency/pom.xml +++ b/examples/powertools-examples-idempotency/pom.xml @@ -1,15 +1,18 @@ 4.0.0 + + software.amazon.lambda.examples + 1.15.0 powertools-examples-idempotency jar Powertools for AWS Lambda (Java) library Examples - Idempotency - - powertools-examples - software.amazon.lambda - 1.15.0 - + + 2.20.0 + 1.8 + 1.8 + @@ -168,6 +171,81 @@ + + + + jdk8 + + (,11) + + + 1.9.7 + + + + + org.aspectj + aspectjtools + ${aspectj.version} + + + + + + + + dev.aspectj + aspectj-maven-plugin + ${aspectj.plugin.version} + + ${maven.compiler.source} + ${maven.compiler.target} + ${maven.compiler.target} + + + software.amazon.lambda + powertools-tracing + + + software.amazon.lambda + powertools-logging + + + software.amazon.lambda + powertools-idempotency + + + + + + + compile + test-compile + + + + + + + org.aspectj + aspectjtools + ${aspectj.version} + + + + + + + + dynamodb-local-oregon diff --git a/examples/powertools-examples-parameters/pom.xml b/examples/powertools-examples-parameters/pom.xml index ac7d2176c..c2f6c1207 100644 --- a/examples/powertools-examples-parameters/pom.xml +++ b/examples/powertools-examples-parameters/pom.xml @@ -1,16 +1,17 @@ 4.0.0 + software.amazon.lambda.examples + 1.15.0 powertools-examples-parameters jar Powertools for AWS Lambda (Java) library Examples - Parameters - - powertools-examples - software.amazon.lambda - 1.15.0 - - + + 1.8 + 1.8 + + software.amazon.lambda @@ -87,4 +88,68 @@ + + + + jdk8 + + (,11) + + + 1.9.7 + + + + + org.aspectj + aspectjtools + ${aspectj.version} + + + + + + + + dev.aspectj + aspectj-maven-plugin + ${aspectj.plugin.version} + + ${maven.compiler.source} + ${maven.compiler.target} + ${maven.compiler.target} + ignore + UTF-8 + + + + process-sources + + compile + test-compile + + + + + + + org.aspectj + aspectjtools + ${aspectj.version} + + + + + + + + diff --git a/examples/powertools-examples-serialization/pom.xml b/examples/powertools-examples-serialization/pom.xml index b3c7d70f7..371d652f0 100644 --- a/examples/powertools-examples-serialization/pom.xml +++ b/examples/powertools-examples-serialization/pom.xml @@ -1,15 +1,16 @@ 4.0.0 + software.amazon.lambda.examples + 1.15.0 powertools-examples-serialization jar Powertools for AWS Lambda (Java) library Examples - Serialization - - powertools-examples - software.amazon.lambda - 1.15.0 - + + 1.8 + 1.8 + @@ -64,4 +65,69 @@ + + + + + jdk8 + + (,11) + + + 1.9.7 + + + + + org.aspectj + aspectjtools + ${aspectj.version} + + + + + + + + dev.aspectj + aspectj-maven-plugin + ${aspectj.plugin.version} + + ${maven.compiler.source} + ${maven.compiler.target} + ${maven.compiler.target} + ignore + UTF-8 + + + + process-sources + + compile + test-compile + + + + + + + org.aspectj + aspectjtools + ${aspectj.version} + + + + + + + + diff --git a/examples/powertools-examples-sqs/pom.xml b/examples/powertools-examples-sqs/pom.xml index 52bde1167..612a9423e 100644 --- a/examples/powertools-examples-sqs/pom.xml +++ b/examples/powertools-examples-sqs/pom.xml @@ -1,15 +1,17 @@ 4.0.0 + software.amazon.lambda.examples + 1.15.0 powertools-examples-sqs jar Powertools for AWS Lambda (Java) library Examples - SQS - - powertools-examples - software.amazon.lambda - 1.15.0 - + + 2.20.0 + 1.8 + 1.8 + @@ -119,4 +121,75 @@ + + + + jdk8 + + (,11) + + + 1.9.7 + + + + + org.aspectj + aspectjtools + ${aspectj.version} + + + + + + + + dev.aspectj + aspectj-maven-plugin + ${aspectj.plugin.version} + + ${maven.compiler.source} + ${maven.compiler.target} + ${maven.compiler.target} + + + software.amazon.lambda + powertools-logging + + + software.amazon.lambda + powertools-sqs + + + + + + + compile + test-compile + + + + + + + org.aspectj + aspectjtools + ${aspectj.version} + + + + + + + + diff --git a/examples/powertools-examples-validation/pom.xml b/examples/powertools-examples-validation/pom.xml index f63a54b57..dbd6dee47 100644 --- a/examples/powertools-examples-validation/pom.xml +++ b/examples/powertools-examples-validation/pom.xml @@ -1,15 +1,16 @@ 4.0.0 + software.amazon.lambda.examples + 1.15.0 powertools-examples-validation jar Powertools for AWS Lambda (Java) library Examples - Validation - - powertools-examples - software.amazon.lambda - 1.15.0 - + + 1.8 + 1.8 + @@ -82,4 +83,71 @@ + + + + jdk8 + + (,11) + + + 1.9.7 + + + + + org.aspectj + aspectjtools + ${aspectj.version} + + + + + + + + dev.aspectj + aspectj-maven-plugin + ${aspectj.plugin.version} + + ${maven.compiler.source} + ${maven.compiler.target} + ${maven.compiler.target} + + + software.amazon.lambda + powertools-validation + + + + + + + compile + test-compile + + + + + + + org.aspectj + aspectjtools + ${aspectj.version} + + + + + + + +