Skip to content

Commit c99af9d

Browse files
chore(docs): use free fair gradle aspect plugin
1 parent 8a7286f commit c99af9d

File tree

6 files changed

+17
-29
lines changed

6 files changed

+17
-29
lines changed

docs/index.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -106,23 +106,22 @@ For more information about the project and available options refer to this [repo
106106
```groovy
107107
plugins{
108108
id 'java'
109-
id 'aspectj.AspectjGradlePlugin' version '0.0.7'
109+
id "io.freefair.aspectj.post-compile-weaving" version "5.0.1"
110110
}
111111
repositories {
112-
jcenter()
112+
mavenCentral()
113113
}
114+
115+
aspectj {
116+
version = "1.9.7"
117+
}
118+
114119
dependencies {
115-
implementation 'software.amazon.lambda:powertools-tracing:1.10.0'
116-
aspectpath 'software.amazon.lambda:powertools-tracing:1.10.0'
117-
implementation 'software.amazon.lambda:powertools-logging:1.10.0'
118-
aspectpath 'software.amazon.lambda:powertools-logging:1.10.0'
119-
implementation 'software.amazon.lambda:powertools-metrics:1.10.0'
120-
aspectpath 'software.amazon.lambda:powertools-metrics:1.10.0'
120+
aspect 'software.amazon.lambda:powertools-logging:1.10.0'
121+
aspect 'software.amazon.lambda:powertools-tracing:1.10.0'
122+
aspect 'software.amazon.lambda:powertools-metrics:1.10.0'
121123
}
122124
```
123-
**Note:**
124-
125-
Please add `aspectjVersion = '1.9.6'` to the `gradle.properties` file.
126125

127126
## Environment variables
128127

docs/utilities/batch.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ To install this utility, add the following dependency to your project.
7373
```groovy
7474
dependencies {
7575
...
76-
implementation 'software.amazon.lambda:powertools-sqs:1.10.0'
77-
aspectpath 'software.amazon.lambda:powertools-sqs:1.10.0'
76+
aspect 'software.amazon.lambda:powertools-sqs:1.10.0'
7877
}
7978
```
8079

docs/utilities/custom_resources.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ To install this utility, add the following dependency to your project.
3434
dependencies {
3535
...
3636
implementation 'software.amazon.lambda:powertools-cloudformation:1.10.0'
37-
aspectpath 'software.amazon.lambda:powertools-cloudformation:1.10.0'
3837
}
3938
```
4039

docs/utilities/parameters.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ To install this utility, add the following dependency to your project.
3232
```groovy
3333
dependencies {
3434
...
35-
implementation 'software.amazon.lambda:powertools-parameters:1.10.0'
36-
aspectpath 'software.amazon.lambda:powertools-parameters:1.10.0'
35+
aspect 'software.amazon.lambda:powertools-parameters:1.10.0'
3736
}
3837
```
3938

@@ -425,19 +424,13 @@ If you want to use the ```@Param``` annotation in your project add configuration
425424
```groovy
426425
plugins{
427426
id 'java'
428-
id 'aspectj.AspectjGradlePlugin' version '0.0.6'
427+
id "io.freefair.aspectj.post-compile-weaving" version "5.0.1"
429428
}
430429
repositories {
431430
jcenter()
432431
}
433432
dependencies {
434433
...
435-
implementation 'software.amazon.lambda:powertools-parameters:1.10.0'
436-
aspectpath 'software.amazon.lambda:powertools-parameters:1.10.0'
434+
aspect 'software.amazon.lambda:powertools-parameters:1.10.0'
437435
}
438-
```
439-
440-
**Note:**
441-
442-
Please add `aspectjVersion = '1.9.6'` to the `gradle.properties` file. The aspectj plugin works at the moment with gradle 5.x only if
443-
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.
436+
```

docs/utilities/sqs_large_message_handling.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ To install this utility, add the following dependency to your project.
8181
```groovy
8282
dependencies {
8383
...
84-
implementation 'software.amazon.lambda:powertools-sqs:1.10.0'
85-
aspectpath 'software.amazon.lambda:powertools-sqs:1.10.0'
84+
aspect 'software.amazon.lambda:powertools-sqs:1.10.0'
8685
}
8786
```
8887

docs/utilities/validation.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ To install this utility, add the following dependency to your project.
6262

6363
```groovy
6464
dependencies {
65-
implementation 'software.amazon.lambda:powertools-validation:1.10.0'
66-
aspectpath 'software.amazon.lambda:powertools-validation:1.10.0'
65+
aspect 'software.amazon.lambda:powertools-validation:1.10.0'
6766
}
6867
```
6968

0 commit comments

Comments
 (0)