You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+114-6Lines changed: 114 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,31 +13,34 @@ Powertools for AWS Lambda (Java) is a developer toolkit to implement Serverless
13
13
14
14
Powertools for AWS Lambda (Java) is available in Maven Central. You can use your favourite dependency management tool to install it
15
15
16
-
*[maven](https://maven.apache.org/):
16
+
#### Maven:
17
17
```xml
18
18
<dependencies>
19
19
...
20
20
<dependency>
21
21
<groupId>software.amazon.lambda</groupId>
22
22
<artifactId>powertools-tracing</artifactId>
23
-
<version>1.15.0</version>
23
+
<version>1.16.1</version>
24
24
</dependency>
25
25
<dependency>
26
26
<groupId>software.amazon.lambda</groupId>
27
27
<artifactId>powertools-logging</artifactId>
28
-
<version>1.15.0</version>
28
+
<version>1.16.1</version>
29
29
</dependency>
30
30
<dependency>
31
31
<groupId>software.amazon.lambda</groupId>
32
32
<artifactId>powertools-metrics</artifactId>
33
-
<version>1.15.0</version>
33
+
<version>1.16.1</version>
34
34
</dependency>
35
35
...
36
36
</dependencies>
37
37
```
38
38
39
-
And configure the aspectj-maven-plugin to compile-time weave (CTW) the aws-lambda-powertools-java aspects into your project:
39
+
Next, configure the aspectj-maven-plugin to compile-time weave (CTW) the aws-lambda-powertools-java aspects into your project. A different configuration is needed for projects on Java 8.
40
40
41
+
<details>
42
+
<summary><b>Maven - Java 11 and newer</b></summary>
43
+
41
44
```xml
42
45
<build>
43
46
<plugins>
@@ -77,13 +80,118 @@ And configure the aspectj-maven-plugin to compile-time weave (CTW) the aws-lambd
77
80
</plugins>
78
81
</build>
79
82
```
83
+
</details>
80
84
81
-
## Example
85
+
<details>
86
+
<summary><b>Maven - Java 8</b></summary>
87
+
88
+
```xml
89
+
<build>
90
+
<plugins>
91
+
...
92
+
<plugin>
93
+
<groupId>org.codehaus.mojo</groupId>
94
+
<artifactId>aspectj-maven-plugin</artifactId>
95
+
<version>1.14.0</version>
96
+
<configuration>
97
+
<source>1.8</source>
98
+
<target>1.8</target>
99
+
<complianceLevel>1.8</complianceLevel>
100
+
<aspectLibraries>
101
+
<aspectLibrary>
102
+
<groupId>software.amazon.lambda</groupId>
103
+
<artifactId>powertools-logging</artifactId>
104
+
</aspectLibrary>
105
+
<aspectLibrary>
106
+
<groupId>software.amazon.lambda</groupId>
107
+
<artifactId>powertools-tracing</artifactId>
108
+
</aspectLibrary>
109
+
<aspectLibrary>
110
+
<groupId>software.amazon.lambda</groupId>
111
+
<artifactId>powertools-metrics</artifactId>
112
+
</aspectLibrary>
113
+
</aspectLibraries>
114
+
</configuration>
115
+
<executions>
116
+
<execution>
117
+
<goals>
118
+
<goal>compile</goal>
119
+
</goals>
120
+
</execution>
121
+
</executions>
122
+
</plugin>
123
+
...
124
+
</plugins>
125
+
</build>
126
+
```
127
+
</details>
128
+
129
+
<details>
130
+
<summary><b>Gradle - Java 11+</b></summary>
131
+
132
+
```groovy
133
+
plugins {
134
+
id 'java'
135
+
id 'io.freefair.aspectj.post-compile-weaving' version '8.1.0'
See the **[examples](examples)** directory for example projects showcasing usage of different utilities.
84
180
85
181
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).
86
182
183
+
## How to support Powertools for AWS Lambda (Java)?
184
+
185
+
### Becoming a reference customer
186
+
187
+
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.
188
+
189
+
The following companies, among others, use Powertools:
Powertools for AWS Lambda (Java) extends the functionality of Log4J. Below is an example `#!xml log4j2.xml` file, with the `JsonTemplateLayout` using `#!json LambdaJsonLayout.json` configured.
0 commit comments