File tree 25 files changed +191
-53
lines changed
powertools-examples-batch
powertools-examples-cloudformation
powertools-examples-core-utilities
powertools-examples-idempotency
powertools-examples-parameters
powertools-examples-serialization
powertools-examples-validation
powertools-idempotency/powertools-idempotency-dynamodb
powertools-logging-logback
25 files changed +191
-53
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 24
24
pull_request :
25
25
branches :
26
26
- main
27
- - v2
28
27
paths :
29
28
- ' powertools-e2e-tests/**'
30
29
63
62
if : ${{ matrix.java != '8' }} # If not 8 don't exclude the examples directory
64
63
run : mvn -DskipTests install --file pom.xml
65
64
- name : Run e2e test with Maven
66
- run : mvn -Pe2e -B verify --file powertools-e2e-tests/pom.xml
65
+ run : mvn -Pe2e -B verify --file powertools-e2e-tests/pom.xml
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 48
48
<plugin >
49
49
<groupId >org.apache.maven.plugins</groupId >
50
50
<artifactId >maven-deploy-plugin</artifactId >
51
- <version >3.1.1 </version >
51
+ <version >3.1.2 </version >
52
52
<configuration >
53
53
<skip >true</skip >
54
54
</configuration >
Original file line number Diff line number Diff line change 86
86
<plugin >
87
87
<groupId >dev.aspectj</groupId >
88
88
<artifactId >aspectj-maven-plugin</artifactId >
89
- <version >1.13.1 </version >
89
+ <version >1.14 </version >
90
90
<configuration >
91
91
<source >${maven.compiler.source} </source >
92
92
<target >${maven.compiler.target} </target >
120
120
<plugin >
121
121
<groupId >org.apache.maven.plugins</groupId >
122
122
<artifactId >maven-shade-plugin</artifactId >
123
- <version >3.5.2 </version >
123
+ <version >3.6.0 </version >
124
124
<executions >
125
125
<execution >
126
126
<phase >package</phase >
147
147
<plugin >
148
148
<groupId >org.apache.maven.plugins</groupId >
149
149
<artifactId >maven-deploy-plugin</artifactId >
150
- <version >3.1.1 </version >
150
+ <version >3.1.2 </version >
151
151
<configuration >
152
152
<skip >true</skip >
153
153
</configuration >
Original file line number Diff line number Diff line change 14
14
<maven .compiler.target>11</maven .compiler.target>
15
15
<lambda .core.version>1.2.3</lambda .core.version>
16
16
<lambda .events.version>3.11.3</lambda .events.version>
17
- <aws .sdk.version>2.25.21 </aws .sdk.version>
17
+ <aws .sdk.version>2.25.35 </aws .sdk.version>
18
18
<aspectj .version>1.9.20.1</aspectj .version>
19
19
20
20
</properties >
87
87
<plugin >
88
88
<groupId >dev.aspectj</groupId >
89
89
<artifactId >aspectj-maven-plugin</artifactId >
90
- <version >1.13.1 </version >
90
+ <version >1.14 </version >
91
91
<configuration >
92
92
<source >${maven.compiler.source} </source >
93
93
<target >${maven.compiler.target} </target >
117
117
<plugin >
118
118
<groupId >org.apache.maven.plugins</groupId >
119
119
<artifactId >maven-shade-plugin</artifactId >
120
- <version >3.5 .0</version >
120
+ <version >3.6 .0</version >
121
121
<executions >
122
122
<execution >
123
123
<phase >package</phase >
144
144
<plugin >
145
145
<groupId >org.apache.maven.plugins</groupId >
146
146
<artifactId >maven-deploy-plugin</artifactId >
147
- <version >3.1.1 </version >
147
+ <version >3.1.2 </version >
148
148
<configuration >
149
149
<skip >true</skip >
150
150
</configuration >
Original file line number Diff line number Diff line change 11
11
<packaging >jar</packaging >
12
12
13
13
<properties >
14
- <log4j .version>2.20.0 </log4j .version>
14
+ <log4j .version>2.23.1 </log4j .version>
15
15
<maven .compiler.source>11</maven .compiler.source>
16
16
<maven .compiler.target>11</maven .compiler.target>
17
17
<aspectj .version>1.9.20.1</aspectj .version>
66
66
<plugin >
67
67
<groupId >dev.aspectj</groupId >
68
68
<artifactId >aspectj-maven-plugin</artifactId >
69
- <version >1.13.1 </version >
69
+ <version >1.14 </version >
70
70
<configuration >
71
71
<source >${maven.compiler.source} </source >
72
72
<target >${maven.compiler.target} </target >
104
104
<plugin >
105
105
<groupId >org.apache.maven.plugins</groupId >
106
106
<artifactId >maven-shade-plugin</artifactId >
107
- <version >3.5 .0</version >
107
+ <version >3.6 .0</version >
108
108
<executions >
109
109
<execution >
110
110
<phase >package</phase >
132
132
<plugin >
133
133
<groupId >org.apache.maven.plugins</groupId >
134
134
<artifactId >maven-deploy-plugin</artifactId >
135
- <version >3.1.1 </version >
135
+ <version >3.1.2 </version >
136
136
<configuration >
137
137
<skip >true</skip >
138
138
</configuration >
Original file line number Diff line number Diff line change 16
16
<plugin >
17
17
<groupId >org.apache.maven.plugins</groupId >
18
18
<artifactId >maven-compiler-plugin</artifactId >
19
- <version >3.11 .0</version >
19
+ <version >3.13 .0</version >
20
20
<configuration >
21
21
<source >11</source >
22
22
<target >11</target >
25
25
<plugin >
26
26
<groupId >org.codehaus.mojo</groupId >
27
27
<artifactId >exec-maven-plugin</artifactId >
28
- <version >3.2 .0</version >
28
+ <version >3.3 .0</version >
29
29
<configuration >
30
30
<mainClass >cdk.CdkApp</mainClass >
31
31
</configuration >
34
34
<plugin >
35
35
<groupId >org.apache.maven.plugins</groupId >
36
36
<artifactId >maven-deploy-plugin</artifactId >
37
- <version >3.1.1 </version >
37
+ <version >3.1.2 </version >
38
38
<configuration >
39
39
<skip >true</skip >
40
40
</configuration >
Original file line number Diff line number Diff line change 52
52
<plugin >
53
53
<groupId >dev.aspectj</groupId >
54
54
<artifactId >aspectj-maven-plugin</artifactId >
55
- <version >1.13.1 </version >
55
+ <version >1.14 </version >
56
56
<configuration >
57
57
<source >${maven.compiler.source} </source >
58
58
<target >${maven.compiler.target} </target >
90
90
<plugin >
91
91
<groupId >org.apache.maven.plugins</groupId >
92
92
<artifactId >maven-shade-plugin</artifactId >
93
- <version >3.5 .0</version >
93
+ <version >3.6 .0</version >
94
94
<executions >
95
95
<execution >
96
96
<phase >package</phase >
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 53
53
<plugin >
54
54
<groupId >dev.aspectj</groupId >
55
55
<artifactId >aspectj-maven-plugin</artifactId >
56
- <version >1.13.1 </version >
56
+ <version >1.14 </version >
57
57
<configuration >
58
58
<source >${maven.compiler.source} </source >
59
59
<target >${maven.compiler.target} </target >
91
91
<plugin >
92
92
<groupId >org.apache.maven.plugins</groupId >
93
93
<artifactId >maven-shade-plugin</artifactId >
94
- <version >3.5 .0</version >
94
+ <version >3.6 .0</version >
95
95
<executions >
96
96
<execution >
97
97
<phase >package</phase >
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 53
53
<plugin >
54
54
<groupId >dev.aspectj</groupId >
55
55
<artifactId >aspectj-maven-plugin</artifactId >
56
- <version >1.13.1 </version >
56
+ <version >1.14 </version >
57
57
<configuration >
58
58
<source >${maven.compiler.source} </source >
59
59
<target >${maven.compiler.target} </target >
91
91
<plugin >
92
92
<groupId >org.apache.maven.plugins</groupId >
93
93
<artifactId >maven-shade-plugin</artifactId >
94
- <version >3.5 .0</version >
94
+ <version >3.6 .0</version >
95
95
<executions >
96
96
<execution >
97
97
<phase >package</phase >
118
118
<plugin >
119
119
<groupId >org.apache.maven.plugins</groupId >
120
120
<artifactId >maven-deploy-plugin</artifactId >
121
- <version >3.1.1 </version >
121
+ <version >3.1.2 </version >
122
122
<configuration >
123
123
<skip >true</skip >
124
124
</configuration >
Original file line number Diff line number Diff line change 79
79
<plugin >
80
80
<groupId >dev.aspectj</groupId >
81
81
<artifactId >aspectj-maven-plugin</artifactId >
82
- <version >1.13.1 </version >
82
+ <version >1.14 </version >
83
83
<configuration >
84
84
<source >${maven.compiler.source} </source >
85
85
<target >${maven.compiler.target} </target >
150
150
<plugin >
151
151
<groupId >org.apache.maven.plugins</groupId >
152
152
<artifactId >maven-shade-plugin</artifactId >
153
- <version >3.5 .0</version >
153
+ <version >3.6 .0</version >
154
154
<executions >
155
155
<execution >
156
156
<phase >package</phase >
176
176
<plugin >
177
177
<groupId >org.apache.maven.plugins</groupId >
178
178
<artifactId >maven-deploy-plugin</artifactId >
179
- <version >3.1.1 </version >
179
+ <version >3.1.2 </version >
180
180
<configuration >
181
181
<skip >true</skip >
182
182
</configuration >
Original file line number Diff line number Diff line change 78
78
<plugin >
79
79
<groupId >dev.aspectj</groupId >
80
80
<artifactId >aspectj-maven-plugin</artifactId >
81
- <version >1.13.1 </version >
81
+ <version >1.14 </version >
82
82
<configuration >
83
83
<source >${maven.compiler.source} </source >
84
84
<target >${maven.compiler.target} </target >
108
108
<plugin >
109
109
<groupId >org.apache.maven.plugins</groupId >
110
110
<artifactId >maven-deploy-plugin</artifactId >
111
- <version >3.1.1 </version >
111
+ <version >3.1.2 </version >
112
112
<configuration >
113
113
<skip >true</skip >
114
114
</configuration >
You can’t perform that action at this time.
0 commit comments