File tree 10 files changed +145
-6
lines changed
examples/powertools-examples-core-utilities
powertools-idempotency/powertools-idempotency-dynamodb
10 files changed +145
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : Docs
2
+ on :
3
+ push :
4
+ branches :
5
+ - v2
6
+ workflow_dispatch : {}
7
+
8
+ permissions :
9
+ id-token : write
10
+ contents : write
11
+ pages : write
12
+
13
+ jobs :
14
+ docs :
15
+ runs-on : ubuntu-latest
16
+ environment : Docs
17
+ steps :
18
+ - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
19
+ - name : Set up Python
20
+ uses : actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1
21
+ with :
22
+ python-version : " 3.8"
23
+ - name : Capture branch and tag
24
+ id : branch_name
25
+ run : |
26
+ echo "SOURCE_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
27
+ echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
28
+ - name : Build docs website
29
+ run : |
30
+ make build-docs-website
31
+ - name : Configure AWS credentials
32
+ uses : aws-actions/configure-aws-credentials@e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef
33
+ with :
34
+ aws-region : us-east-1
35
+ role-to-assume : ${{ secrets.AWS_DOCS_ROLE_ARN }}
36
+ - name : Deploy Docs
37
+ run : |
38
+ aws s3 sync \
39
+ dist \
40
+ s3://${{ secrets.AWS_DOCS_BUCKET }}/lambda-java/preview/
Original file line number Diff line number Diff line change
1
+ name : Publish v2
2
+ on :
3
+ push :
4
+ branches :
5
+ - v2
6
+ workflow_dispatch : {}
7
+ jobs :
8
+ publish :
9
+ runs-on : ubuntu-latest
10
+ environment : snapshot
11
+ steps :
12
+ - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
13
+ - name : Set up Maven Central Repository
14
+ uses : actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
15
+ with :
16
+ distribution : ' corretto'
17
+ java-version : 11
18
+ server-id : ossrh
19
+ server-username : MAVEN_USERNAME
20
+ server-password : MAVEN_PASSWORD
21
+ # TODO: use environments https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment
22
+ gpg-private-key : ${{ secrets.GPG_SIGNING_KEY }} # Value of the GPG private key to import
23
+ gpg-passphrase : GPG_PASSPHRASE # env variable for GPG private key passphrase
24
+ - name : Publish package
25
+ run : mvn -Prelease clean validate deploy -DskipTests # We use validate here to run maven enforcer, to make sure we are only publishing SNAPSHOT builds
26
+ env :
27
+ MAVEN_USERNAME : ${{ secrets.SNAPSHOT_PUBLISH_USERNAME }}
28
+ MAVEN_PASSWORD : ${{ secrets.SNAPSHOT_PUBLISH_PASSWORD }}
29
+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 27
27
- name : Publish package
28
28
run : mvn -Prelease clean deploy -DskipTests
29
29
env :
30
- MAVEN_USERNAME : ${{ secrets.OSSRH_JIRA_USERNAME }}
31
- MAVEN_PASSWORD : ${{ secrets.OSSRH_JIRA_PASSWORD }}
30
+ MAVEN_USERNAME : ${{ secrets.SNAPSHOT_PUBLISH_USERNAME }}
31
+ MAVEN_PASSWORD : ${{ secrets.SNAPSHOT_PUBLISH_PASSWORD }}
32
32
GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
33
33
- name : Close issues related to this release
34
34
uses : actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
Original file line number Diff line number Diff line change @@ -3,7 +3,13 @@ title: Homepage
3
3
description : Powertools for AWS Lambda (Java)
4
4
---
5
5
6
- ![ aws provider] ( https://img.shields.io/badge/provider-AWS-orange?logo=amazon-aws&color=ff9900 ) ![ Build status] ( https://github.com/aws-powertools/powertools-lambda-java/actions/workflows/build.yml/badge.svg ) ![ Maven Central] ( https://img.shields.io/maven-central/v/software.amazon.lambda/powertools-parent )
6
+ ![ aws provider] ( https://img.shields.io/badge/provider-AWS-orange?logo=amazon-aws&color=ff9900 ) ![ Build status] ( https://github.com/aws-powertools/powertools-lambda-java/actions/workflows/publish-v2-snapshot.yml/badge.svg ) ![ Maven Central] (https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Faws.oss.sonatype.org%2Fcontent%2Frepositories%2Fsnapshots%2Fsoftware%2Famazon%2Flambda%2Fpowertools-parent%2Fmaven-metadata.xml
7
+ )
8
+
9
+ ???+ warning
10
+ You are browsing the documentation for Powertools for AWS Lambda (Java) - v2. This is a snapshot release and not stable!
11
+ Check out our stable [ v1] ( https://docs.powertools.aws.dev/lambda/java/ ) documentation if this is not what you wanted.
12
+ The v2 maven snapshot repository can be found [ here] ( https://aws.oss.sonatype.org/content/repositories/snapshots/software/amazon/lambda/ ) .
7
13
8
14
Powertools for AWS Lambda (Java) is a suite of utilities for AWS Lambda Functions that makes tracing with AWS X-Ray, structured logging and creating custom metrics asynchronously easier.
9
15
Original file line number Diff line number Diff line change 113
113
</dependency >
114
114
</dependencies >
115
115
</plugin >
116
+ <!-- Don't deploy the example -->
117
+ <plugin >
118
+ <groupId >org.apache.maven.plugins</groupId >
119
+ <artifactId >maven-deploy-plugin</artifactId >
120
+ <version >3.1.2</version >
121
+ <configuration >
122
+ <skip >true</skip >
123
+ </configuration >
124
+ </plugin >
116
125
</plugins >
117
126
</build >
118
127
</project >
Original file line number Diff line number Diff line change 114
114
</dependency >
115
115
</dependencies >
116
116
</plugin >
117
+ <!-- Don't deploy the example -->
118
+ <plugin >
119
+ <groupId >org.apache.maven.plugins</groupId >
120
+ <artifactId >maven-deploy-plugin</artifactId >
121
+ <version >3.1.2</version >
122
+ <configuration >
123
+ <skip >true</skip >
124
+ </configuration >
125
+ </plugin >
117
126
</plugins >
118
127
</build >
119
128
</project >
Original file line number Diff line number Diff line change 1
- site_name : Powertools for AWS Lambda (Java)
2
- site_description : Powertools for AWS Lambda (Java)
1
+ site_name : Powertools for AWS Lambda (Java) Preview
2
+ site_description : Powertools for AWS Lambda (Java) Preview
3
3
site_author : Amazon Web Services
4
4
site_url : https://docs.powertools.aws.dev/lambda-java/
5
5
nav :
@@ -85,7 +85,7 @@ extra_javascript:
85
85
86
86
extra :
87
87
powertools :
88
- version : 2.0.0 # to update after each release (we do not want snapshot version here)
88
+ version : 2.0.0-SNAPSHOT
89
89
90
90
repo_url : https://github.com/aws-powertools/powertools-lambda-java
91
91
edit_uri : edit/main/docs
Original file line number Diff line number Diff line change 97
97
<project .rootdir>${maven.multiModuleProjectDirectory} </project .rootdir>
98
98
</properties >
99
99
100
+ <distributionManagement >
101
+ <snapshotRepository >
102
+ <id >ossrh</id >
103
+ <url >https://aws.oss.sonatype.org/content/repositories/snapshots</url >
104
+ </snapshotRepository >
105
+ </distributionManagement >
106
+
100
107
<dependencyManagement >
101
108
<dependencies >
102
109
<dependency >
457
464
<id >release</id >
458
465
<build >
459
466
<plugins >
467
+ <plugin >
468
+ <groupId >org.apache.maven.plugins</groupId >
469
+ <artifactId >maven-enforcer-plugin</artifactId >
470
+ <version >3.5.0</version >
471
+ <executions >
472
+ <execution >
473
+ <id >enforce-snapshot-versions</id >
474
+ <phase >validate</phase >
475
+ <goals >
476
+ <goal >enforce</goal >
477
+ </goals >
478
+ <configuration >
479
+ <rules >
480
+ <requireSnapshotVersion >
481
+ <message >Release build should not have snapshot dependencies!</message >
482
+ </requireSnapshotVersion >
483
+ </rules >
484
+ <fail >true</fail >
485
+ </configuration >
486
+ </execution >
487
+ </executions >
488
+ </plugin >
460
489
<plugin >
461
490
<groupId >org.apache.maven.plugins</groupId >
462
491
<artifactId >maven-gpg-plugin</artifactId >
Original file line number Diff line number Diff line change
1
+ {"installationId" :" e43b8515-8484-485c-8315-bead4568972b" ,"telemetryEnabled" :" true" }
Original file line number Diff line number Diff line change 8
8
https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html
9
9
-->
10
10
<FindBugsFilter >
11
+ <!-- These open matches are new rules that we have not yet addressed. Let's block them generically, and come
12
+ back to them later. -->
13
+ <Match >
14
+ <Bug pattern =" CT_CONSTRUCTOR_THROW" />
15
+ </Match >
16
+ <Match >
17
+ <Bug pattern =" PA_PUBLIC_PRIMITIVE_ATTRIBUTE" />
18
+ </Match >
19
+ <Match >
20
+ <Bug pattern =" SING_SINGLETON_GETTER_NOT_SYNCHRONIZED" />
21
+ </Match >
22
+ <Match >
23
+ <Bug pattern =" SING_SINGLETON_GETTER_NOT_SYNCHRONIZED" />
24
+ </Match >
25
+
26
+ <!-- Regular matches -->
11
27
<Match >
12
28
<Bug pattern =" EI_EXPOSE_REP2" />
13
29
<Or >
You can’t perform that action at this time.
0 commit comments