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: docs/content/utilities/parameters.mdx
+60-1Lines changed: 60 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -308,4 +308,63 @@ public class AppWithAnnotation implements RequestHandler<APIGatewayProxyRequestE
308
308
ObjectToDeserialize value;
309
309
310
310
}
311
-
```
311
+
```
312
+
313
+
### Install
314
+
315
+
If you want to use the ```@Param``` annotation in your project add configuration to compile-time weave (CTW) the powertools-parameters aspects into your project.
316
+
For more information about the annotation refer to [this section]((./parameters#Annotation))
317
+
318
+
*[maven](https://maven.apache.org/):
319
+
```xml
320
+
<build>
321
+
<plugins>
322
+
...
323
+
<plugin>
324
+
<groupId>org.codehaus.mojo</groupId>
325
+
<artifactId>aspectj-maven-plugin</artifactId>
326
+
<version>1.11</version>
327
+
<configuration>
328
+
...
329
+
<aspectLibraries>
330
+
...
331
+
<aspectLibrary>
332
+
<groupId>software.amazon.lambda</groupId>
333
+
<artifactId>powertools-parameters</artifactId>
334
+
</aspectLibrary>
335
+
</aspectLibraries>
336
+
</configuration>
337
+
<executions>
338
+
<execution>
339
+
<goals>
340
+
<goal>compile</goal>
341
+
</goals>
342
+
</execution>
343
+
</executions>
344
+
</plugin>
345
+
...
346
+
</plugins>
347
+
</build>
348
+
```
349
+
**Note:** If you are working with lambda function on runtime post java8, please refer [issue](https://github.com/awslabs/aws-lambda-powertools-java/issues/50) for workaround
Please add `aspectjVersion = '1.9.6'` to the `gradle.properties` file. The aspectj plugin works at the moment with gradle 5.x only if
370
+
you are using `java 8` as runtime. Please refer to [open issue](https://github.com/awslabs/aws-lambda-powertools-java/issues/146) for more details.
0 commit comments