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
+20-12
Original file line number
Diff line number
Diff line change
@@ -36,9 +36,11 @@ Powertools for AWS Lambda (Java) is available in Maven Central. You can use your
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
-
For Java 11+, use the following:
41
+
<details>
42
+
<summary><b>Maven - Java 11 and newer</b></summary>
43
+
42
44
```xml
43
45
<build>
44
46
<plugins>
@@ -78,8 +80,11 @@ For Java 11+, use the following:
78
80
</plugins>
79
81
</build>
80
82
```
83
+
</details>
81
84
82
-
For Java 8, use the following:
85
+
<details>
86
+
<summary><b>Maven - Java 8</b></summary>
87
+
83
88
```xml
84
89
<build>
85
90
<plugins>
@@ -119,11 +124,12 @@ For Java 8, use the following:
119
124
</plugins>
120
125
</build>
121
126
```
122
-
#### gradle
127
+
</details>
123
128
124
-
For Java 11+:
129
+
<details>
130
+
<summary><b>Gradle - Java 11+</b></summary>
125
131
126
-
```groovy
132
+
```groovy
127
133
plugins {
128
134
id 'java'
129
135
id 'io.freefair.aspectj.post-compile-weaving' version '8.1.0'
@@ -141,11 +147,13 @@ For Java 11+:
141
147
142
148
sourceCompatibility = 11
143
149
targetCompatibility = 11
144
-
```
150
+
```
151
+
</details>
145
152
146
-
For Java8:
153
+
<details>
154
+
<summary><b>Gradle - Java 8</b></summary>
147
155
148
-
```groovy
156
+
```groovy
149
157
plugins {
150
158
id 'java'
151
159
id 'io.freefair.aspectj.post-compile-weaving' version '6.6.3'
@@ -163,10 +171,10 @@ For Java8:
163
171
164
172
sourceCompatibility = 1.8
165
173
targetCompatibility = 1.8
166
-
```
167
-
174
+
```
175
+
</details>
168
176
169
-
## Example
177
+
## Examples
170
178
171
179
See the **[examples](examples)** directory for example projects showcasing usage of different utilities.
0 commit comments