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
Powertools for AWS Lambda (Java) supports all Java versions from 11 to 25 in line with the[corresponding Lambda runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html).
131
+
131
132
For the modules that provide annotations, Powertools for AWS Lambda (Java) leverages the **aspectj** library.
132
-
You may need to add the good version of `aspectjrt` to your dependencies based on the JDK used for building your function:
133
+
You may need to add the appropriate version of `aspectjrt` to your dependencies based on the JDK used for building your function:
133
134
134
135
```xml
135
136
<dependency>
@@ -142,12 +143,13 @@ You may need to add the good version of `aspectjrt` to your dependencies based o
Use the following [dependency matrix](https://github.com/eclipse-aspectj/aspectj/blob/master/docs/release/JavaVersionCompatibility.adoc) to understand which AspectJ version to use based on your JDK version:
147
+
145
148
| JDK version | aspectj version |
146
149
|-------------|------------------------|
147
150
|`11-17`|`1.9.20.1` (or higher) |
148
151
|`21`|`1.9.21` (or higher) |
149
-
150
-
More info [here](https://github.com/aws-powertools/powertools-lambda-java/pull/1519/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R191).
Many utilities in this library use `aspectj-maven-plugin` to compile-time weave (CTW) aspects into the project. In case you want to use `Lombok` or other compile-time preprocessor for your project, it is required to change `aspectj-maven-plugin` configuration to enable in-place weaving feature. Otherwise the plugin will ignore changes introduced by `Lombok` and will use `.java` files as a source.
9
9
10
+
Alternatively, you can use the [functional approach](./usage-patterns.md#functional-approach) which does not require AspectJ configuration.
11
+
10
12
To enable in-place weaving feature you need to use following `aspectj-maven-plugin` configuration:
11
13
12
14
```xml hl_lines="2-6"
@@ -31,6 +33,8 @@ To enable in-place weaving feature you need to use following `aspectj-maven-plug
31
33
Many utilities use `aspectj-maven-plugin` to compile-time weave (CTW) aspects into the project. When using it with Kotlin projects, it is required to `forceAjcCompile`.
32
34
No explicit configuration should be required for gradle projects.
33
35
36
+
Alternatively, you can use the [functional approach](./usage-patterns.md#functional-approach) which does not require AspectJ configuration.
37
+
34
38
To enable `forceAjcCompile` you need to use following `aspectj-maven-plugin` configuration:
0 commit comments