Skip to content

Commit 5b1c2c4

Browse files
docs: update README.md (#1294)
* Update README.md * Update README.md Co-authored-by: Jérôme Van Der Linden <[email protected]> --------- Co-authored-by: Jérôme Van Der Linden <[email protected]>
1 parent 903d08b commit 5b1c2c4

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

README.md

+20-12
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ Powertools for AWS Lambda (Java) is available in Maven Central. You can use your
3636
</dependencies>
3737
```
3838

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.
4040

41-
For Java 11+, use the following:
41+
<details>
42+
<summary><b>Maven - Java 11 and newer</b></summary>
43+
4244
```xml
4345
<build>
4446
<plugins>
@@ -78,8 +80,11 @@ For Java 11+, use the following:
7880
</plugins>
7981
</build>
8082
```
83+
</details>
8184

82-
For Java 8, use the following:
85+
<details>
86+
<summary><b>Maven - Java 8</b></summary>
87+
8388
```xml
8489
<build>
8590
<plugins>
@@ -119,11 +124,12 @@ For Java 8, use the following:
119124
</plugins>
120125
</build>
121126
```
122-
#### gradle
127+
</details>
123128

124-
For Java 11+:
129+
<details>
130+
<summary><b>Gradle - Java 11+</b></summary>
125131

126-
```groovy
132+
```groovy
127133
plugins {
128134
id 'java'
129135
id 'io.freefair.aspectj.post-compile-weaving' version '8.1.0'
@@ -141,11 +147,13 @@ For Java 11+:
141147
142148
sourceCompatibility = 11
143149
targetCompatibility = 11
144-
```
150+
```
151+
</details>
145152

146-
For Java8:
153+
<details>
154+
<summary><b>Gradle - Java 8</b></summary>
147155

148-
```groovy
156+
```groovy
149157
plugins {
150158
id 'java'
151159
id 'io.freefair.aspectj.post-compile-weaving' version '6.6.3'
@@ -163,10 +171,10 @@ For Java8:
163171
164172
sourceCompatibility = 1.8
165173
targetCompatibility = 1.8
166-
```
167-
174+
```
175+
</details>
168176

169-
## Example
177+
## Examples
170178

171179
See the **[examples](examples)** directory for example projects showcasing usage of different utilities.
172180

0 commit comments

Comments
 (0)