|
42 | 42 | <type>pom</type>
|
43 | 43 | <scope>import</scope>
|
44 | 44 | </dependency>
|
45 |
| - |
| 45 | + <dependency> |
| 46 | + <groupId>org.aspectj</groupId> |
| 47 | + <artifactId>aspectjrt</artifactId> |
| 48 | + <version>${aspectj.version}</version> |
| 49 | + </dependency> |
46 | 50 | <dependency>
|
47 | 51 | <groupId>software.amazon.lambda</groupId>
|
48 | 52 | <artifactId>powertools-logging</artifactId>
|
|
143 | 147 | <useIncrementalCompilation>false</useIncrementalCompilation>
|
144 | 148 | </configuration>
|
145 | 149 | </plugin>
|
| 150 | + <plugin> |
| 151 | + <groupId>dev.aspectj</groupId> |
| 152 | + <artifactId>aspectj-maven-plugin</artifactId> |
| 153 | + <version>${aspectj.plugin.version}</version> |
| 154 | + <configuration> |
| 155 | + <verbose>true</verbose> |
| 156 | + <source>${maven.compiler.source}</source> |
| 157 | + <target>${maven.compiler.target}</target> |
| 158 | + <complianceLevel>${maven.compiler.target}</complianceLevel> |
| 159 | + <Xlint>ignore</Xlint> |
| 160 | + <encoding>${project.build.sourceEncoding}</encoding> |
| 161 | + </configuration> |
| 162 | + <executions> |
| 163 | + <execution> |
| 164 | + <goals> |
| 165 | + <goal>compile</goal> |
| 166 | + <goal>test-compile</goal> |
| 167 | + </goals> |
| 168 | + </execution> |
| 169 | + </executions> |
| 170 | + <dependencies> |
| 171 | + <dependency> |
| 172 | + <groupId>org.aspectj</groupId> |
| 173 | + <artifactId>aspectjtools</artifactId> |
| 174 | + <version>${aspectj.version}</version> |
| 175 | + </dependency> |
| 176 | + </dependencies> |
| 177 | + </plugin> |
146 | 178 | </plugins>
|
147 | 179 | </pluginManagement>
|
148 | 180 | </build>
|
149 | 181 |
|
150 | 182 | <profiles>
|
| 183 | + <!-- https://github.com/eclipse-aspectj/aspectj/blob/master/docs/dist/doc/JavaVersionCompatibility.md --> |
151 | 184 | <profile>
|
152 |
| - <id>jdk8</id> |
| 185 | + <id>jdk8to16</id> |
153 | 186 | <activation>
|
154 |
| - <jdk>(,11)</jdk> <!-- < 11 --> |
| 187 | + <jdk>[1.8,16]</jdk> |
155 | 188 | </activation>
|
156 | 189 | <properties>
|
157 | 190 | <aspectj.version>1.9.7</aspectj.version>
|
158 | 191 | </properties>
|
159 |
| - <dependencyManagement> |
160 |
| - <dependencies> |
161 |
| - <dependency> |
162 |
| - <groupId>org.aspectj</groupId> |
163 |
| - <artifactId>aspectjtools</artifactId> |
164 |
| - <version>${aspectj.version}</version> |
165 |
| - </dependency> |
166 |
| - </dependencies> |
167 |
| - </dependencyManagement> |
168 |
| - <build> |
169 |
| - <pluginManagement> |
170 |
| - <plugins> |
171 |
| - <plugin> |
172 |
| - <groupId>dev.aspectj</groupId> |
173 |
| - <artifactId>aspectj-maven-plugin</artifactId> |
174 |
| - <version>${aspectj.plugin.version}</version> |
175 |
| - <configuration> |
176 |
| - <source>${maven.compiler.source}</source> |
177 |
| - <target>${maven.compiler.target}</target> |
178 |
| - <complianceLevel>${maven.compiler.target}</complianceLevel> |
179 |
| - <Xlint>ignore</Xlint> |
180 |
| - <encoding>${project.build.sourceEncoding}</encoding> |
181 |
| - </configuration> |
182 |
| - <executions> |
183 |
| - <execution> |
184 |
| - <phase>process-sources</phase> |
185 |
| - <goals> |
186 |
| - <goal>compile</goal> |
187 |
| - <goal>test-compile</goal> |
188 |
| - </goals> |
189 |
| - </execution> |
190 |
| - </executions> |
191 |
| - <!-- Enforce aspectJ 1.9.7 --> |
192 |
| - <dependencies> |
193 |
| - <dependency> |
194 |
| - <groupId>org.aspectj</groupId> |
195 |
| - <artifactId>aspectjtools</artifactId> |
196 |
| - <version>${aspectj.version}</version> |
197 |
| - </dependency> |
198 |
| - </dependencies> |
199 |
| - </plugin> |
200 |
| - </plugins> |
201 |
| - </pluginManagement> |
202 |
| - </build> |
203 | 192 | </profile>
|
204 | 193 | <profile>
|
205 |
| - <id>jdk11plus</id> |
| 194 | + <id>jdk17to20</id> |
206 | 195 | <activation>
|
207 |
| - <jdk>[11,)</jdk> <!-- >= 11 --> |
| 196 | + <jdk>[17,20]</jdk> |
208 | 197 | </activation>
|
209 |
| - <build> |
210 |
| - <pluginManagement> |
211 |
| - <plugins> |
212 |
| - <plugin> |
213 |
| - <groupId>dev.aspectj</groupId> |
214 |
| - <artifactId>aspectj-maven-plugin</artifactId> |
215 |
| - <version>${aspectj.plugin.version}</version> |
216 |
| - <configuration> |
217 |
| - <source>${maven.compiler.source}</source> |
218 |
| - <target>${maven.compiler.target}</target> |
219 |
| - <complianceLevel>${maven.compiler.target}</complianceLevel> |
220 |
| - <Xlint>ignore</Xlint> |
221 |
| - <encoding>${project.build.sourceEncoding}</encoding> |
222 |
| - </configuration> |
223 |
| - <executions> |
224 |
| - <execution> |
225 |
| - <phase>process-sources</phase> |
226 |
| - <goals> |
227 |
| - <goal>compile</goal> |
228 |
| - <goal>test-compile</goal> |
229 |
| - </goals> |
230 |
| - </execution> |
231 |
| - </executions> |
232 |
| - </plugin> |
233 |
| - </plugins> |
234 |
| - </pluginManagement> |
235 |
| - </build> |
| 198 | + <properties> |
| 199 | + <aspectj.version>1.9.20.1</aspectj.version> |
| 200 | + </properties> |
| 201 | + </profile> |
| 202 | + <profile> |
| 203 | + <id>jdk21</id> |
| 204 | + <activation> |
| 205 | + <jdk>[21,)</jdk> |
| 206 | + </activation> |
| 207 | + <properties> |
| 208 | + <aspectj.version>1.9.21-SNAPSHOT</aspectj.version> |
| 209 | + </properties> |
236 | 210 | </profile>
|
237 | 211 | </profiles>
|
238 | 212 |
|
| 213 | + <repositories> |
| 214 | + <repository> |
| 215 | + <id>ossrh-snapshots</id> |
| 216 | + <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 217 | + <releases> |
| 218 | + <enabled>false</enabled> |
| 219 | + </releases> |
| 220 | + <snapshots> |
| 221 | + <enabled>true</enabled> |
| 222 | + <updatePolicy>always</updatePolicy> |
| 223 | + </snapshots> |
| 224 | + </repository> |
| 225 | + </repositories> |
| 226 | + |
239 | 227 | </project>
|
0 commit comments