Skip to content

Commit cba4bf2

Browse files
authored
Merge branch 'main' into dependabot/github_actions/actions/checkout-5.0.0
2 parents 8df7fa1 + 006f8ff commit cba4bf2

File tree

48 files changed

+107
-120
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+107
-120
lines changed

.github/workflows/security-dependencies-check.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,12 @@
66
#
77
# Triggers:
88
# - pull_request
9-
# - push
10-
# - workflow_dispatch
11-
# - cron: daily at 12:00PM
129

1310
on:
14-
pull_request:
15-
workflow_dispatch:
16-
push:
17-
branches: [ main ]
18-
schedule:
19-
- cron: '0 12 * * *' # Run daily at 12:00 UTC
11+
pull_request:
2012

2113
name: Verify Dependencies
22-
run-name: Verify Dependencies – ${{ github.event_name }}
14+
run-name: Verify Dependencies – ${{ github.event_name }}
2315

2416
permissions:
2517
contents: read
@@ -36,4 +28,4 @@ jobs:
3628
- name: Verify Contents
3729
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4.7.1
3830
with:
39-
config-file: './.github/dependency-review-config.yml'
31+
config-file: './.github/dependency-review-config.yml'

.github/workflows/security-scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ jobs:
5252
path: results.sarif
5353
retention-days: 5
5454
- name: Upload to Code-Scanning
55-
uses: github/codeql-action/upload-sarif@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.5
55+
uses: github/codeql-action/upload-sarif@df559355d593797519d70b90fc8edd5db049e7a2 # v3.29.5
5656
with:
5757
sarif_file: results.sarif

README.md

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Powertools for AWS Lambda (Java) V2
1+
# Powertools for AWS Lambda (Java)
22

3-
**This is pre-release code for Powertools for AWS Lambda (Java) V2! Please check out the `main` branch for the stable release**
4-
5-
![aws provider](https://img.shields.io/badge/provider-AWS-orange?logo=amazon-aws&color=ff9900) [![V2 Build Status](https://github.com/aws-powertools/powertools-lambda-java/actions/workflows/pr_build.yml/badge.svg?branch=v2)](https://github.com/aws-powertools/powertools-lambda-java/actions/workflows/pr_build.yml) **MAVEN DEPLOY NOT DONE** [![codecov.io](https://codecov.io/github/aws-powertools/powertools-lambda-java/branch/v2/graphs/badge.svg)](https://app.codecov.io/gh/aws-powertools/powertools-lambda-java/tree/v2)
3+
![aws provider](https://img.shields.io/badge/provider-AWS-orange?logo=amazon-aws&color=ff9900) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=aws-powertools_powertools-lambda-java&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=aws-powertools_powertools-lambda-java)
4+
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=aws-powertools_powertools-lambda-java&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=aws-powertools_powertools-lambda-java)
5+
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/aws-powertools/powertools-lambda-java/badge)](https://api.securityscorecards.dev/projects/github.com/aws-powertools/powertools-lambda-java) ![Maven Central](https://img.shields.io/maven-central/v/software.amazon.lambda/powertools-parent) [![codecov.io](https://codecov.io/github/aws-powertools/powertools-lambda-java/branch/main/graphs/badge.svg)](https://app.codecov.io/gh/aws-powertools/powertools-lambda-java)
66

77

88
Powertools for AWS Lambda (Java) is a developer toolkit to implement Serverless best practices and increase developer velocity.
99

1010
> Also available in [Python](https://github.com/aws-powertools/powertools-lambda-python), [TypeScript](https://github.com/aws-powertools/powertools-lambda-typescript), and [.NET](https://github.com/aws-powertools/powertools-lambda-dotnet).
1111
12-
**[📜Documentation](https://docs.powertools.aws.dev/lambda-java/preview)** | **[Feature request](https://github.com/aws-powertools/powertools-lambda-java/issues/new?assignees=&labels=feature-request%2C+triage&template=feature_request.md&title=)** | **[🐛Bug Report](https://github.com/aws-powertools/powertools-lambda-java/issues/new?assignees=&labels=bug%2C+triage&template=bug_report.md&title=)** | **[Detailed blog post](https://aws.amazon.com/blogs/opensource/simplifying-serverless-best-practices-with-aws-lambda-powertools-java/)**
12+
**[📜Documentation](https://docs.powertools.aws.dev/lambda-java/latest)** | **[Feature request](https://github.com/aws-powertools/powertools-lambda-java/issues/new?template=feature_request.yml)** | **[🐛Bug Report](https://github.com/aws-powertools/powertools-lambda-java/issues/new?template=bug_report.yml)** | **[Detailed blog post](https://aws.amazon.com/blogs/compute/introducing-v2-of-powertools-for-aws-lambda-java/)**
1313

1414
## Installation
1515

@@ -22,17 +22,17 @@ Powertools for AWS Lambda (Java) is available in Maven Central. You can use your
2222
<dependency>
2323
<groupId>software.amazon.lambda</groupId>
2424
<artifactId>powertools-tracing</artifactId>
25-
<version>2.2.1</version>
25+
<version>2.3.0</version>
2626
</dependency>
2727
<dependency>
2828
<groupId>software.amazon.lambda</groupId>
2929
<artifactId>powertools-logging</artifactId>
30-
<version>2.2.1</version>
30+
<version>2.3.0</version>
3131
</dependency>
3232
<dependency>
3333
<groupId>software.amazon.lambda</groupId>
3434
<artifactId>powertools-metrics</artifactId>
35-
<version>2.2.1</version>
35+
<version>2.3.0</version>
3636
</dependency>
3737
...
3838
</dependencies>
@@ -153,15 +153,15 @@ More info [here](https://github.com/aws-powertools/powertools-lambda-java/pull/1
153153

154154
## Examples
155155

156-
See the latest release of the **[examples](https://github.com/aws-powertools/powertools-lambda-java/tree/v1.18.0/examples)** for example projects showcasing usage of different utilities.
156+
See the latest release of the **[examples](https://github.com/aws-powertools/powertools-lambda-java/tree/main/examples)** for example projects showcasing usage of different utilities.
157157

158158
Have a demo project to contribute which showcase usage of different utilities from powertools? We are happy to accept it [here](CONTRIBUTING.md#security-issue-notifications).
159159

160160
## How to support Powertools for AWS Lambda (Java)?
161161

162162
### Becoming a reference customer
163163

164-
Knowing which companies are using this library is important to help prioritize the project internally. If your company is using Powertools for AWS Lambda (Java), you can request to have your name and logo added to the README file by raising a [Support Powertools for AWS Lambda (Java) (become a reference)](https://github.com/aws-powertools/powertools-lambda-java/issues/new?assignees=&labels=customer-reference&template=support_powertools.yml&title=%5BSupport+Lambda+Powertools%5D%3A+%3Cyour+organization+name%3E) issue.
164+
Knowing which companies are using this library is important to help prioritize the project internally. If your company is using Powertools for AWS Lambda (Java), you can request to have your name and logo added to the README file by raising a [Support Powertools for AWS Lambda (Java) (become a reference)](https://github.com/aws-powertools/powertools-lambda-java/issues/new?template=support_powertools.yml) issue.
165165

166166
The following companies, among others, use Powertools:
167167

@@ -170,20 +170,15 @@ The following companies, among others, use Powertools:
170170
* [Europace AG](https://europace.de/)
171171
* [Vertex Pharmaceuticals](https://www.vrtx.com/)
172172

173-
## Credits
174-
175-
* [MkDocs](https://www.mkdocs.org/)
176-
* [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/)
177-
178173
## Connect
179174

180-
* **Powertools for AWS Lambda on Discord**: `#java` - **[Invite link](https://discord.gg/B8zZKbbyET)**
181-
* **Email**: <aws-lambda-powertools-feedback@amazon.com>
175+
- **Powertools for AWS Lambda on Discord**: `#java` - **[Invite link](https://discord.gg/B8zZKbbyET)**
176+
- **Email**: <aws-powertools-maintainers@amazon.com>
182177

183178
## Security disclosures
184179

185180
If you think you’ve found a potential security issue, please do not post it in the Issues. Instead, please follow the instructions [here](https://aws.amazon.com/security/vulnerability-reporting/) or [email AWS security directly](mailto:[email protected]).
186181

187182
## License
188183

189-
This library is licensed under the Apache License, Version 2.0. See the LICENSE file.
184+
This library is licensed under the MIT-0 License. See the [LICENSE](https://github.com/aws-powertools/powertools-lambda-java/blob/main/LICENSE) file.

docs/core/metrics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,15 +540,15 @@ The following example shows how to configure a custom `Metrics` Singleton using
540540

541541
### Suppressing metrics output
542542

543-
If you would like to suppress metrics output during your unit tests, you can use the `POWERTOOLS_DISABLE_METRICS` environment variable. For example, using Maven you can set in your build plugins:
543+
If you would like to suppress metrics output during your unit tests, you can use the `POWERTOOLS_METRICS_DISABLED` environment variable. For example, using Maven you can set in your build plugins:
544544

545545
```xml
546546
<plugin>
547547
<groupId>org.apache.maven.plugins</groupId>
548548
<artifactId>maven-surefire-plugin</artifactId>
549549
<configuration>
550550
<environmentVariables>
551-
<POWERTOOLS_DISABLE_METRICS>true</POWERTOOLS_DISABLE_METRICS>
551+
<POWERTOOLS_METRICS_DISABLED>true</POWERTOOLS_METRICS_DISABLED>
552552
</environmentVariables>
553553
</configuration>
554554
</plugin>

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Powertools for AWS Lambda (Java) is a suite of utilities for AWS Lambda Function
1010

1111

1212
???+ tip "Looking for a quick run through of the core utilities?"
13-
Check out [this detailed blog post](https://aws.amazon.com/blogs/opensource/simplifying-serverless-best-practices-with-aws-lambda-powertools-java/) with a practical example. To dive deeper,
13+
Check out [this detailed blog post](https://aws.amazon.com/blogs/compute/introducing-v2-of-powertools-for-aws-lambda-java/) with a practical example. To dive deeper,
1414
the [Powertools for AWS Lambda (Java) workshop](https://catalog.us-east-1.prod.workshops.aws/workshops/a7011c82-e4af-4a52-80fa-fcd61f1dacd9/en-US/introduction) is a great next step.
1515

1616
## Tenets

examples/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<groupId>software.amazon.lambda</groupId>
2222
<artifactId>powertools-examples</artifactId>
23-
<version>2.2.1</version>
23+
<version>2.3.0</version>
2424
<packaging>pom</packaging>
2525

2626
<name>Powertools for AWS Lambda (Java) - Examples</name>
@@ -52,7 +52,7 @@
5252
<plugin>
5353
<groupId>org.apache.maven.plugins</groupId>
5454
<artifactId>maven-deploy-plugin</artifactId>
55-
<version>3.1.2</version>
55+
<version>3.1.4</version>
5656
<configuration>
5757
<skip>true</skip>
5858
</configuration>

examples/powertools-examples-batch/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>software.amazon.lambda.examples</groupId>
8-
<version>2.2.1</version>
8+
<version>2.3.0</version>
99
<artifactId>powertools-examples-batch</artifactId>
1010
<packaging>jar</packaging>
1111
<name>Powertools for AWS Lambda (Java) - Examples - Batch</name>
@@ -86,7 +86,7 @@
8686
<plugin>
8787
<groupId>dev.aspectj</groupId>
8888
<artifactId>aspectj-maven-plugin</artifactId>
89-
<version>1.14</version>
89+
<version>1.14.1</version>
9090
<configuration>
9191
<source>${maven.compiler.source}</source>
9292
<target>${maven.compiler.target}</target>
@@ -147,7 +147,7 @@
147147
<plugin>
148148
<groupId>org.apache.maven.plugins</groupId>
149149
<artifactId>maven-deploy-plugin</artifactId>
150-
<version>3.1.2</version>
150+
<version>3.1.4</version>
151151
<configuration>
152152
<skip>true</skip>
153153
</configuration>

examples/powertools-examples-cloudformation/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Run the following in your shell:
1515
```bash
1616
cd infra/sam
1717
sam build
18-
sam deploy --guided --parameter-overrides BucketNameParam=my-unique-bucket-2.2.1718
18+
sam deploy --guided --parameter-overrides BucketNameParam=my-unique-bucket-2.3.0718
1919
```
2020

2121
### Deploy with CDK
@@ -32,5 +32,5 @@ To build and deploy this application for the first time, run the following in yo
3232
cd infra/cdk
3333
mvn package
3434
cdk synth
35-
cdk deploy -c BucketNameParam=my-unique-bucket-2.2.1718
35+
cdk deploy -c BucketNameParam=my-unique-bucket-2.3.0718
3636
```

examples/powertools-examples-cloudformation/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44

55
<groupId>software.amazon.lambda.examples</groupId>
6-
<version>2.2.1</version>
6+
<version>2.3.0</version>
77
<artifactId>powertools-examples-cloudformation</artifactId>
88
<packaging>jar</packaging>
99

@@ -14,7 +14,7 @@
1414
<maven.compiler.target>11</maven.compiler.target>
1515
<lambda.core.version>1.3.0</lambda.core.version>
1616
<lambda.events.version>3.16.1</lambda.events.version>
17-
<aws.sdk.version>2.32.18</aws.sdk.version>
17+
<aws.sdk.version>2.32.23</aws.sdk.version>
1818
<aspectj.version>1.9.20.1</aspectj.version>
1919

2020
</properties>
@@ -87,7 +87,7 @@
8787
<plugin>
8888
<groupId>dev.aspectj</groupId>
8989
<artifactId>aspectj-maven-plugin</artifactId>
90-
<version>1.14</version>
90+
<version>1.14.1</version>
9191
<configuration>
9292
<source>${maven.compiler.source}</source>
9393
<target>${maven.compiler.target}</target>
@@ -144,7 +144,7 @@
144144
<plugin>
145145
<groupId>org.apache.maven.plugins</groupId>
146146
<artifactId>maven-deploy-plugin</artifactId>
147-
<version>3.1.2</version>
147+
<version>3.1.4</version>
148148
<configuration>
149149
<skip>true</skip>
150150
</configuration>

examples/powertools-examples-core-utilities/cdk/app/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>software.amazon.lambda.examples</groupId>
77
<!-- TODO TODO TODO this should build from SNAPSHOT, but it doesn't, because the snapshots
88
don't appear in the docker environment CDK builds it in in our CDK tests. How to procede? V2 blocker -->
9-
<version>2.2.1</version>
9+
<version>2.3.0</version>
1010
<artifactId>powertools-examples-core-utilities-cdk</artifactId>
1111
<packaging>jar</packaging>
1212

@@ -66,7 +66,7 @@
6666
<plugin>
6767
<groupId>dev.aspectj</groupId>
6868
<artifactId>aspectj-maven-plugin</artifactId>
69-
<version>1.14</version>
69+
<version>1.14.1</version>
7070
<configuration>
7171
<source>${maven.compiler.source}</source>
7272
<target>${maven.compiler.target}</target>
@@ -132,7 +132,7 @@
132132
<plugin>
133133
<groupId>org.apache.maven.plugins</groupId>
134134
<artifactId>maven-deploy-plugin</artifactId>
135-
<version>3.1.2</version>
135+
<version>3.1.4</version>
136136
<configuration>
137137
<skip>true</skip>
138138
</configuration>

0 commit comments

Comments
 (0)