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
+7-81
Original file line number
Diff line number
Diff line change
@@ -38,10 +38,10 @@ Powertools for AWS Lambda (Java) is available in Maven Central. You can use your
38
38
</dependencies>
39
39
```
40
40
41
-
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.
41
+
Next, configure the aspectj-maven-plugin to compile-time weave (CTW) the aws-lambda-powertools-java aspects into your project.
42
42
43
43
<details>
44
-
<summary><b>Maven - Java 11 and newer</b></summary>
44
+
<summary><b>Maven</b></summary>
45
45
46
46
```xml
47
47
<build>
@@ -52,9 +52,9 @@ Next, configure the aspectj-maven-plugin to compile-time weave (CTW) the aws-lam
52
52
<artifactId>aspectj-maven-plugin</artifactId>
53
53
<version>1.13.1</version>
54
54
<configuration>
55
-
<source>1.8</source>
56
-
<target>1.8</target>
57
-
<complianceLevel>1.8</complianceLevel>
55
+
<source>11</source>
56
+
<target>11</target>
57
+
<complianceLevel>11</complianceLevel>
58
58
<aspectLibraries>
59
59
<aspectLibrary>
60
60
<groupId>software.amazon.lambda</groupId>
@@ -85,51 +85,7 @@ Next, configure the aspectj-maven-plugin to compile-time weave (CTW) the aws-lam
85
85
</details>
86
86
87
87
<details>
88
-
<summary><b>Maven - Java 8</b></summary>
89
-
90
-
```xml
91
-
<build>
92
-
<plugins>
93
-
...
94
-
<plugin>
95
-
<groupId>org.codehaus.mojo</groupId>
96
-
<artifactId>aspectj-maven-plugin</artifactId>
97
-
<version>1.14.0</version>
98
-
<configuration>
99
-
<source>1.8</source>
100
-
<target>1.8</target>
101
-
<complianceLevel>1.8</complianceLevel>
102
-
<aspectLibraries>
103
-
<aspectLibrary>
104
-
<groupId>software.amazon.lambda</groupId>
105
-
<artifactId>powertools-logging</artifactId>
106
-
</aspectLibrary>
107
-
<aspectLibrary>
108
-
<groupId>software.amazon.lambda</groupId>
109
-
<artifactId>powertools-tracing</artifactId>
110
-
</aspectLibrary>
111
-
<aspectLibrary>
112
-
<groupId>software.amazon.lambda</groupId>
113
-
<artifactId>powertools-metrics</artifactId>
114
-
</aspectLibrary>
115
-
</aspectLibraries>
116
-
</configuration>
117
-
<executions>
118
-
<execution>
119
-
<goals>
120
-
<goal>compile</goal>
121
-
</goals>
122
-
</execution>
123
-
</executions>
124
-
</plugin>
125
-
...
126
-
</plugins>
127
-
</build>
128
-
```
129
-
</details>
130
-
131
-
<details>
132
-
<summary><b>Gradle - Java 11+</b></summary>
88
+
<summary><b>Gradle</b></summary>
133
89
134
90
```groovy
135
91
@@ -160,38 +116,9 @@ Next, configure the aspectj-maven-plugin to compile-time weave (CTW) the aws-lam
160
116
```
161
117
</details>
162
118
163
-
<details>
164
-
<summary><b>Gradle - Java 8</b></summary>
165
-
166
-
```groovy
167
-
plugins {
168
-
id 'java'
169
-
id 'io.freefair.aspectj.post-compile-weaving' version '6.6.3'
170
-
}
171
-
172
-
// the freefair aspect plugins targets gradle 7.6.1
Before your use this utility, your AWS Lambda function [must have permissions](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html#services-xray-permissions) to send traces to AWS X-Ray.
0 commit comments