Skip to content

Commit 0fd2ecf

Browse files
authored
chore: Swap implementation of aspectj-maven-plugin to support Java 17 (#1172)
1 parent db32719 commit 0fd2ecf

File tree

16 files changed

+42
-31
lines changed

16 files changed

+42
-31
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ And configure the aspectj-maven-plugin to compile-time weave (CTW) the aws-lambd
4343
<plugins>
4444
...
4545
<plugin>
46-
<groupId>org.codehaus.mojo</groupId>
46+
<groupId>dev.aspectj</groupId>
4747
<artifactId>aspectj-maven-plugin</artifactId>
48-
<version>1.14.0</version>
48+
<version>1.13.1</version>
4949
<configuration>
5050
<source>1.8</source>
5151
<target>1.8</target>

docs/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ For more information about the project and available options refer to this [repo
7171
<plugins>
7272
...
7373
<plugin>
74-
<groupId>org.codehaus.mojo</groupId>
74+
<groupId>dev.aspectj</groupId>
7575
<artifactId>aspectj-maven-plugin</artifactId>
76-
<version>1.14.0</version>
76+
<version>1.13.1</version>
7777
<configuration>
7878
<source>1.8</source>
7979
<target>1.8</target>
@@ -122,6 +122,8 @@ For more information about the project and available options refer to this [repo
122122
aspect 'software.amazon.lambda:powertools-logging:{{ powertools.version }}'
123123
aspect 'software.amazon.lambda:powertools-tracing:{{ powertools.version }}'
124124
aspect 'software.amazon.lambda:powertools-metrics:{{ powertools.version }}'
125+
// This dependency is needed for Java17+, please uncomment it if you are using Java17+
126+
// implementation 'org.aspectj:aspectjrt:1.9.19'
125127
}
126128

127129
sourceCompatibility = 11

docs/utilities/batch.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ To install this utility, add the following dependency to your project.
4141
<plugins>
4242
...
4343
<plugin>
44-
<groupId>org.codehaus.mojo</groupId>
44+
<groupId>dev.aspectj</groupId>
4545
<artifactId>aspectj-maven-plugin</artifactId>
46-
<version>1.14.0</version>
46+
<version>1.13.1</version>
4747
<configuration>
4848
<source>1.8</source>
4949
<target>1.8</target>
@@ -83,6 +83,8 @@ To install this utility, add the following dependency to your project.
8383
dependencies {
8484
...
8585
aspect 'software.amazon.lambda:powertools-sqs:{{ powertools.version }}'
86+
// This dependency is needed for Java17+, please uncomment it if you are using Java17+
87+
// implementation 'org.aspectj:aspectjrt:1.9.19'
8688
}
8789
```
8890

docs/utilities/idempotency.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ times with the same parameters**. This makes idempotent operations safe to retry
4343
<plugins>
4444
...
4545
<plugin>
46-
<groupId>org.codehaus.mojo</groupId>
46+
<groupId>dev.aspectj</groupId>
4747
<artifactId>aspectj-maven-plugin</artifactId>
48-
<version>1.14.0</version>
48+
<version>1.13.1</version>
4949
<configuration>
5050
<source>1.8</source>
5151
<target>1.8</target>

docs/utilities/parameters.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ To install this utility, add the following dependency to your project.
3434
dependencies {
3535
...
3636
aspect 'software.amazon.lambda:powertools-parameters:{{ powertools.version }}'
37+
// This dependency is needed for Java17+, please uncomment it if you are using Java17+
38+
// implementation 'org.aspectj:aspectjrt:1.9.19'
3739
}
3840
```
3941

@@ -441,9 +443,9 @@ If you want to use the ```@Param``` annotation in your project add configuration
441443
<plugins>
442444
...
443445
<plugin>
444-
<groupId>org.codehaus.mojo</groupId>
446+
<groupId>dev.aspectj</groupId>
445447
<artifactId>aspectj-maven-plugin</artifactId>
446-
<version>1.14.0</version>
448+
<version>1.13.1</version>
447449
<configuration>
448450
...
449451
<aspectLibraries>
@@ -482,5 +484,6 @@ If you want to use the ```@Param``` annotation in your project add configuration
482484
dependencies {
483485
...
484486
aspect 'software.amazon.lambda:powertools-parameters:{{ powertools.version }}'
487+
implementation 'org.aspectj:aspectjrt:1.9.19'
485488
}
486489
```

docs/utilities/sqs_large_message_handling.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ To install this utility, add the following dependency to your project.
4949
<plugins>
5050
...
5151
<plugin>
52-
<groupId>org.codehaus.mojo</groupId>
52+
<groupId>dev.aspectj</groupId>
5353
<artifactId>aspectj-maven-plugin</artifactId>
54-
<version>1.14.0</version>
54+
<version>1.13.1</version>
5555
<configuration>
5656
<source>1.8</source>
5757
<target>1.8</target>
@@ -91,6 +91,8 @@ To install this utility, add the following dependency to your project.
9191
dependencies {
9292
...
9393
aspect 'software.amazon.lambda:powertools-sqs:{{ powertools.version }}'
94+
// This dependency is needed for Java17+, please uncomment it if you are using Java17+
95+
// implementation 'org.aspectj:aspectjrt:1.9.19'
9496
}
9597
```
9698

docs/utilities/validation.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ To install this utility, add the following dependency to your project.
3131
<plugins>
3232
...
3333
<plugin>
34-
<groupId>org.codehaus.mojo</groupId>
34+
<groupId>dev.aspectj</groupId>
3535
<artifactId>aspectj-maven-plugin</artifactId>
36-
<version>1.14.0</version>
36+
<version>1.13.1</version>
3737
<configuration>
3838
<source>1.8</source>
3939
<target>1.8</target>
@@ -72,6 +72,8 @@ To install this utility, add the following dependency to your project.
7272

7373
dependencies {
7474
aspect 'software.amazon.lambda:powertools-validation:{{ powertools.version }}'
75+
// This dependency is needed for Java17+, please uncomment it if you are using Java17+
76+
// implementation 'org.aspectj:aspectjrt:1.9.19'
7577
}
7678
```
7779

examples/powertools-examples-core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
<build>
6060
<plugins>
6161
<plugin>
62-
<groupId>org.codehaus.mojo</groupId>
62+
<groupId>dev.aspectj</groupId>
6363
<artifactId>aspectj-maven-plugin</artifactId>
64-
<version>1.14.0</version>
64+
<version>1.13.1</version>
6565
<configuration>
6666
<source>${maven.compiler.source}</source>
6767
<target>${maven.compiler.target}</target>

examples/powertools-examples-idempotency/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@
7676
<build>
7777
<plugins>
7878
<plugin>
79-
<groupId>org.codehaus.mojo</groupId>
79+
<groupId>dev.aspectj</groupId>
8080
<artifactId>aspectj-maven-plugin</artifactId>
81-
<version>1.14.0</version>
81+
<version>1.13.1</version>
8282
<configuration>
8383
<source>${maven.compiler.source}</source>
8484
<target>${maven.compiler.target}</target>

examples/powertools-examples-parameters/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
<version>3.1.0</version>
6464
</plugin>
6565
<plugin>
66-
<groupId>org.codehaus.mojo</groupId>
66+
<groupId>dev.aspectj</groupId>
6767
<artifactId>aspectj-maven-plugin</artifactId>
68-
<version>1.14.0</version>
68+
<version>1.13.1</version>
6969
<configuration>
7070
<source>${maven.compiler.source}</source>
7171
<target>${maven.compiler.target}</target>

0 commit comments

Comments
 (0)