Skip to content

Commit 16f2c40

Browse files
chore(docs): FAQ for Kotlin projects
1 parent dd9df6d commit 16f2c40

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

docs/FAQs.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,25 @@ To enable in-place weaving feature you need to use following `aspectj-maven-plug
2525
</aspectLibrary>
2626
</aspectLibraries>
2727
</configuration>
28-
```
28+
```
29+
30+
## How can I use Powertools with Kotlin projects?
31+
32+
Poweretools uses `aspectj-maven-plugin` to compile-time weave (CTW) aspects into the project. When using it with Kotlin projects, it is required to `forceAjcCompile`.
33+
No explicit configuration should be required for gradle projects.
34+
35+
To enable `forceAjcCompile` you need to use following `aspectj-maven-plugin` configuration:
36+
37+
```xml hl_lines="2"
38+
<configuration>
39+
<forceAjcCompile>true</forceAjcCompile>
40+
...
41+
<aspectLibraries>
42+
<aspectLibrary>
43+
<groupId>software.amazon.lambda</groupId>
44+
<artifactId>powertools-logging</artifactId>
45+
</aspectLibrary>
46+
</aspectLibraries>
47+
</configuration>
48+
```
49+

0 commit comments

Comments
 (0)