From 6e1eda986d7f5ed23886480c538e2a6b29f41b5f Mon Sep 17 00:00:00 2001 From: jdoherty07 Date: Mon, 4 Dec 2023 14:50:08 +0000 Subject: [PATCH] pom cleanup and reduce warning noise --- examples/pom.xml | 1 + examples/powertools-examples-batch/pom.xml | 1 + .../pom.xml | 1 + .../cdk/app/pom.xml | 1 + .../cdk/infra/pom.xml | 1 + .../terraform/pom.xml | 1 + .../powertools-examples-idempotency/pom.xml | 1 + .../powertools-examples-parameters/pom.xml | 1 + .../powertools-examples-serialization/pom.xml | 1 + .../powertools-examples-validation/pom.xml | 1 + pom.xml | 38 +++++++++---------- powertools-cloudformation/pom.xml | 22 ----------- powertools-common/pom.xml | 23 ----------- powertools-idempotency/pom.xml | 22 ----------- powertools-large-messages/pom.xml | 22 ----------- powertools-logging/pom.xml | 5 ++- powertools-metrics/pom.xml | 22 ----------- powertools-parameters/pom.xml | 1 - powertools-serialization/pom.xml | 22 ----------- powertools-tracing/pom.xml | 23 ----------- powertools-validation/pom.xml | 23 ----------- .../validation/internal/ValidationAspect.java | 7 ++-- 22 files changed, 35 insertions(+), 205 deletions(-) diff --git a/examples/pom.xml b/examples/pom.xml index 943cad950..f864c3c04 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -48,6 +48,7 @@ org.apache.maven.plugins maven-deploy-plugin + 3.1.1 true diff --git a/examples/powertools-examples-batch/pom.xml b/examples/powertools-examples-batch/pom.xml index a1b4c0bbc..947f146b3 100644 --- a/examples/powertools-examples-batch/pom.xml +++ b/examples/powertools-examples-batch/pom.xml @@ -136,6 +136,7 @@ org.apache.maven.plugins maven-deploy-plugin + 3.1.1 true diff --git a/examples/powertools-examples-cloudformation/pom.xml b/examples/powertools-examples-cloudformation/pom.xml index bee97e52a..8851daa6d 100644 --- a/examples/powertools-examples-cloudformation/pom.xml +++ b/examples/powertools-examples-cloudformation/pom.xml @@ -144,6 +144,7 @@ org.apache.maven.plugins maven-deploy-plugin + 3.1.1 true diff --git a/examples/powertools-examples-core-utilities/cdk/app/pom.xml b/examples/powertools-examples-core-utilities/cdk/app/pom.xml index f8d340f3b..f964782e3 100644 --- a/examples/powertools-examples-core-utilities/cdk/app/pom.xml +++ b/examples/powertools-examples-core-utilities/cdk/app/pom.xml @@ -132,6 +132,7 @@ org.apache.maven.plugins maven-deploy-plugin + 3.1.1 true diff --git a/examples/powertools-examples-core-utilities/cdk/infra/pom.xml b/examples/powertools-examples-core-utilities/cdk/infra/pom.xml index 053bd239c..f4d82141b 100644 --- a/examples/powertools-examples-core-utilities/cdk/infra/pom.xml +++ b/examples/powertools-examples-core-utilities/cdk/infra/pom.xml @@ -34,6 +34,7 @@ org.apache.maven.plugins maven-deploy-plugin + 3.1.1 true diff --git a/examples/powertools-examples-core-utilities/terraform/pom.xml b/examples/powertools-examples-core-utilities/terraform/pom.xml index c6f838619..94f79a5fd 100644 --- a/examples/powertools-examples-core-utilities/terraform/pom.xml +++ b/examples/powertools-examples-core-utilities/terraform/pom.xml @@ -118,6 +118,7 @@ org.apache.maven.plugins maven-deploy-plugin + 3.1.1 true diff --git a/examples/powertools-examples-idempotency/pom.xml b/examples/powertools-examples-idempotency/pom.xml index 5a040fec0..19d7a2272 100644 --- a/examples/powertools-examples-idempotency/pom.xml +++ b/examples/powertools-examples-idempotency/pom.xml @@ -176,6 +176,7 @@ org.apache.maven.plugins maven-deploy-plugin + 3.1.1 true diff --git a/examples/powertools-examples-parameters/pom.xml b/examples/powertools-examples-parameters/pom.xml index 3630811f3..a08747ff2 100644 --- a/examples/powertools-examples-parameters/pom.xml +++ b/examples/powertools-examples-parameters/pom.xml @@ -108,6 +108,7 @@ org.apache.maven.plugins maven-deploy-plugin + 3.1.1 true diff --git a/examples/powertools-examples-serialization/pom.xml b/examples/powertools-examples-serialization/pom.xml index 2c8fc951a..106fe7cbb 100644 --- a/examples/powertools-examples-serialization/pom.xml +++ b/examples/powertools-examples-serialization/pom.xml @@ -41,6 +41,7 @@ org.apache.maven.plugins maven-deploy-plugin + 3.1.1 true diff --git a/examples/powertools-examples-validation/pom.xml b/examples/powertools-examples-validation/pom.xml index ed33568cb..1c39ee8a0 100644 --- a/examples/powertools-examples-validation/pom.xml +++ b/examples/powertools-examples-validation/pom.xml @@ -106,6 +106,7 @@ org.apache.maven.plugins maven-deploy-plugin + 3.1.1 true diff --git a/pom.xml b/pom.xml index b7227cf8a..737d8abd6 100644 --- a/pom.xml +++ b/pom.xml @@ -32,6 +32,25 @@ GitHub Issues https://github.com/aws-powertools/powertools-lambda-java/issues + + + https://github.com/aws-powertools/powertools-lambda-java.git + + + + Powertools for AWS Lambda (Java) Team + Amazon Web Services + https://aws.amazon.com/ + + + + + + ossrh + https://aws.oss.sonatype.org/content/repositories/snapshots + + + Apache License, Version 2.0 @@ -63,18 +82,6 @@ powertools-parameters/powertools-parameters-tests - - https://github.com/aws-powertools/powertools-lambda-java.git - - - - - Powertools for AWS Lambda (Java) team - Amazon Web Services - https://aws.amazon.com/ - - - 1.8 1.8 @@ -103,13 +110,6 @@ 1.5.0 - - - ossrh - https://aws.oss.sonatype.org/content/repositories/snapshots - - - diff --git a/powertools-cloudformation/pom.xml b/powertools-cloudformation/pom.xml index 79071d532..e3e4748d6 100644 --- a/powertools-cloudformation/pom.xml +++ b/powertools-cloudformation/pom.xml @@ -32,28 +32,6 @@ A suite of utilities for AWS Lambda Functions that makes tracing with AWS X-Ray, structured logging and creating custom metrics asynchronously easier. - https://aws.amazon.com/lambda/ - - GitHub Issues - https://github.com/aws-powertools/powertools-lambda-java/issues - - - https://github.com/aws-powertools/powertools-lambda-java.git - - - - Powertools for AWS Lambda (Java) Team - Amazon Web Services - https://aws.amazon.com/ - - - - - - ossrh - https://aws.oss.sonatype.org/content/repositories/snapshots - - diff --git a/powertools-common/pom.xml b/powertools-common/pom.xml index 363d2e944..15409e1f6 100644 --- a/powertools-common/pom.xml +++ b/powertools-common/pom.xml @@ -29,29 +29,6 @@ Powertools for AWS Lambda (Java) - Common Internal Utilities Internal utilities shared by the Powertools for AWS Lambda (Java) modules. Do not use directly in your project. - https://aws.amazon.com/lambda/ - - GitHub Issues - https://github.com/aws-powertools/powertools-lambda-java/issues - - - - https://github.com/aws-powertools/powertools-lambda-java.git - - - - Powertools for AWS Lambda team - Amazon Web Services - https://aws.amazon.com/ - - - - - - ossrh - https://aws.oss.sonatype.org/content/repositories/snapshots - - diff --git a/powertools-idempotency/pom.xml b/powertools-idempotency/pom.xml index eda7bd982..fd53cd9e2 100644 --- a/powertools-idempotency/pom.xml +++ b/powertools-idempotency/pom.xml @@ -31,28 +31,6 @@ - https://aws.amazon.com/lambda/ - - GitHub Issues - https://github.com/aws-powertools/powertools-lambda-java/issues - - - https://github.com/aws-powertools/powertools-lambda-java.git - - - - Powertools for AWS Lambda team - Amazon Web Services - https://aws.amazon.com/ - - - - - - ossrh - https://aws.oss.sonatype.org/content/repositories/snapshots - - diff --git a/powertools-large-messages/pom.xml b/powertools-large-messages/pom.xml index af031ff21..4206183de 100644 --- a/powertools-large-messages/pom.xml +++ b/powertools-large-messages/pom.xml @@ -31,28 +31,6 @@ Powertools for AWS Lambda (Java) - Large messages - - GitHub Issues - https://github.com/aws-powertools/powertools-lambda-java/issues - - - https://github.com/aws-powertools/powertools-lambda-java.git - - - - Powertools for AWS Lambda team - Amazon Web Services - https://aws.amazon.com/ - - - - - - ossrh - https://aws.oss.sonatype.org/content/repositories/snapshots - - - org.aspectj diff --git a/powertools-logging/pom.xml b/powertools-logging/pom.xml index 56ca0e62b..43c65a3b0 100644 --- a/powertools-logging/pom.xml +++ b/powertools-logging/pom.xml @@ -17,16 +17,17 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + powertools-parent software.amazon.lambda 2.0.0-SNAPSHOT - powertools-logging - jar Powertools for AWS Lambda (Java) - Logging Set of utility for better logging - common + powertools-logging + jar diff --git a/powertools-metrics/pom.xml b/powertools-metrics/pom.xml index 7de1efa3f..0daa49664 100644 --- a/powertools-metrics/pom.xml +++ b/powertools-metrics/pom.xml @@ -32,28 +32,6 @@ A suite of utilities for AWS Lambda Functions that make creating custom metrics via AWS Embedded Metric Format asynchronously easier. - https://aws.amazon.com/lambda/ - - GitHub Issues - https://github.com/aws-powertools/powertools-lambda-java/issues - - - https://github.com/aws-powertools/powertools-lambda-java.git - - - - Powertools for AWS Lambda team - Amazon Web Services - https://aws.amazon.com/ - - - - - - ossrh - https://aws.oss.sonatype.org/content/repositories/snapshots - - diff --git a/powertools-parameters/pom.xml b/powertools-parameters/pom.xml index 54065aab2..6c90e30a8 100644 --- a/powertools-parameters/pom.xml +++ b/powertools-parameters/pom.xml @@ -27,7 +27,6 @@ powertools-parameters Powertools for AWS Lambda (Java) - Parameters - Set of utilities to retrieve parameters - common interface diff --git a/powertools-serialization/pom.xml b/powertools-serialization/pom.xml index d1b2de826..454b30d3e 100644 --- a/powertools-serialization/pom.xml +++ b/powertools-serialization/pom.xml @@ -31,28 +31,6 @@ - https://aws.amazon.com/lambda/ - - GitHub Issues - https://github.com/aws-powertools/powertools-lambda-java/issues - - - https://github.com/aws-powertools/powertools-lambda-java.git - - - - Powertools for AWS Lambda team - Amazon Web Services - https://aws.amazon.com/ - - - - - - ossrh - https://aws.oss.sonatype.org/content/repositories/snapshots - - diff --git a/powertools-tracing/pom.xml b/powertools-tracing/pom.xml index 1625fd0cb..9d60d4f40 100644 --- a/powertools-tracing/pom.xml +++ b/powertools-tracing/pom.xml @@ -31,29 +31,6 @@ A suite of utilities for AWS Lambda Functions that makes tracing with AWS X-Ray, structured logging and creating custom metrics asynchronously easier. - https://aws.amazon.com/lambda/ - - GitHub Issues - https://github.com/aws-powertools/powertools-lambda-java/issues - - - - https://github.com/aws-powertools/powertools-lambda-java.git - - - - Powertools for AWS Lambda team - Amazon Web Services - https://aws.amazon.com/ - - - - - - ossrh - https://aws.oss.sonatype.org/content/repositories/snapshots - - diff --git a/powertools-validation/pom.xml b/powertools-validation/pom.xml index bd57fa6c5..a5fc4a890 100644 --- a/powertools-validation/pom.xml +++ b/powertools-validation/pom.xml @@ -31,29 +31,6 @@ Json schema validation for Lambda events and responses - https://aws.amazon.com/lambda/ - - GitHub Issues - https://github.com/aws-powertools/powertools-lambda-java/issues - - - - https://github.com/aws-powertools/powertools-lambda-java.git - - - - Powertools for AWS Lambda team - Amazon Web Services - https://aws.amazon.com/ - - - - - - ossrh - https://aws.oss.sonatype.org/content/repositories/snapshots - - diff --git a/powertools-validation/src/main/java/software/amazon/lambda/powertools/validation/internal/ValidationAspect.java b/powertools-validation/src/main/java/software/amazon/lambda/powertools/validation/internal/ValidationAspect.java index 978be16de..bcbba9e03 100644 --- a/powertools-validation/src/main/java/software/amazon/lambda/powertools/validation/internal/ValidationAspect.java +++ b/powertools-validation/src/main/java/software/amazon/lambda/powertools/validation/internal/ValidationAspect.java @@ -22,10 +22,6 @@ import static software.amazon.lambda.powertools.validation.ValidationUtils.getJsonSchema; import static software.amazon.lambda.powertools.validation.ValidationUtils.validate; -import java.util.Collections; -import java.util.List; -import java.util.Map; - import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent; import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent; import com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent; @@ -47,6 +43,9 @@ import com.amazonaws.services.lambda.runtime.events.SQSEvent; import com.amazonaws.services.lambda.runtime.events.ScheduledEvent; import com.networknt.schema.JsonSchema; +import java.util.Collections; +import java.util.List; +import java.util.Map; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect;