Skip to content

chore(docs): use free fair gradle aspect plugin #679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,23 +106,22 @@ For more information about the project and available options refer to this [repo
```groovy
plugins{
id 'java'
id 'aspectj.AspectjGradlePlugin' version '0.0.7'
id 'io.freefair.aspectj.post-compile-weaving' version '5.0.1'
}
repositories {
jcenter()
mavenCentral()
}

aspectj {
version = "1.9.7"
}

dependencies {
implementation 'software.amazon.lambda:powertools-tracing:1.10.0'
aspectpath 'software.amazon.lambda:powertools-tracing:1.10.0'
implementation 'software.amazon.lambda:powertools-logging:1.10.0'
aspectpath 'software.amazon.lambda:powertools-logging:1.10.0'
implementation 'software.amazon.lambda:powertools-metrics:1.10.0'
aspectpath 'software.amazon.lambda:powertools-metrics:1.10.0'
aspect 'software.amazon.lambda:powertools-logging:1.10.0'
aspect 'software.amazon.lambda:powertools-tracing:1.10.0'
aspect 'software.amazon.lambda:powertools-metrics:1.10.0'
}
```
**Note:**

Please add `aspectjVersion = '1.9.6'` to the `gradle.properties` file.

## Environment variables

Expand Down
3 changes: 1 addition & 2 deletions docs/utilities/batch.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ To install this utility, add the following dependency to your project.
```groovy
dependencies {
...
implementation 'software.amazon.lambda:powertools-sqs:1.10.0'
aspectpath 'software.amazon.lambda:powertools-sqs:1.10.0'
aspect 'software.amazon.lambda:powertools-sqs:1.10.0'
}
```

Expand Down
1 change: 0 additions & 1 deletion docs/utilities/custom_resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ To install this utility, add the following dependency to your project.
dependencies {
...
implementation 'software.amazon.lambda:powertools-cloudformation:1.10.0'
aspectpath 'software.amazon.lambda:powertools-cloudformation:1.10.0'
}
```

Expand Down
15 changes: 4 additions & 11 deletions docs/utilities/parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ To install this utility, add the following dependency to your project.
```groovy
dependencies {
...
implementation 'software.amazon.lambda:powertools-parameters:1.10.0'
aspectpath 'software.amazon.lambda:powertools-parameters:1.10.0'
aspect 'software.amazon.lambda:powertools-parameters:1.10.0'
}
```

Expand Down Expand Up @@ -425,19 +424,13 @@ If you want to use the ```@Param``` annotation in your project add configuration
```groovy
plugins{
id 'java'
id 'aspectj.AspectjGradlePlugin' version '0.0.6'
id 'io.freefair.aspectj.post-compile-weaving' version '5.0.1'
}
repositories {
jcenter()
}
dependencies {
...
implementation 'software.amazon.lambda:powertools-parameters:1.10.0'
aspectpath 'software.amazon.lambda:powertools-parameters:1.10.0'
aspect 'software.amazon.lambda:powertools-parameters:1.10.0'
}
```

**Note:**

Please add `aspectjVersion = '1.9.6'` to the `gradle.properties` file. The aspectj plugin works at the moment with gradle 5.x only if
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.
```
3 changes: 1 addition & 2 deletions docs/utilities/sqs_large_message_handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ To install this utility, add the following dependency to your project.
```groovy
dependencies {
...
implementation 'software.amazon.lambda:powertools-sqs:1.10.0'
aspectpath 'software.amazon.lambda:powertools-sqs:1.10.0'
aspect 'software.amazon.lambda:powertools-sqs:1.10.0'
}
```

Expand Down
3 changes: 1 addition & 2 deletions docs/utilities/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ To install this utility, add the following dependency to your project.

```groovy
dependencies {
implementation 'software.amazon.lambda:powertools-validation:1.10.0'
aspectpath 'software.amazon.lambda:powertools-validation:1.10.0'
aspect 'software.amazon.lambda:powertools-validation:1.10.0'
}
```

Expand Down