|
12 | 12 | <properties>
|
13 | 13 | <lambda.powertools.version>1.15.0</lambda.powertools.version>
|
14 | 14 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
15 |
| - <maven.compiler.source>11</maven.compiler.source> |
16 |
| - <maven.compiler.target>11</maven.compiler.target> |
| 15 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 16 | + <maven.compiler.target>1.8</maven.compiler.target> |
17 | 17 |
|
18 | 18 | <lambda.java.core>1.2.2</lambda.java.core>
|
19 |
| - <lambda.java.events>3.11.0</lambda.java.events> |
20 |
| - <maven.shade.version>3.2.4</maven.shade.version> |
21 |
| - <aspectj.version>1.13.1</aspectj.version> |
22 |
| - <maven.compiler.version>3.10.1</maven.compiler.version> |
| 19 | + <lambda.java.events>3.11.2</lambda.java.events> |
| 20 | + <maven.shade.version>3.5.0</maven.shade.version> |
| 21 | + <aspectj.plugin.version>1.13.1</aspectj.plugin.version> |
| 22 | + <maven.compiler.version>3.11.0</maven.compiler.version> |
23 | 23 | </properties>
|
24 | 24 |
|
25 | 25 | <modules>
|
|
104 | 104 | </dependency>
|
105 | 105 | </dependencies>
|
106 | 106 | </plugin>
|
107 |
| - <plugin> |
108 |
| - <groupId>dev.aspectj</groupId> |
109 |
| - <artifactId>aspectj-maven-plugin</artifactId> |
110 |
| - <version>1.13.1</version> |
111 |
| - </plugin> |
112 | 107 | <plugin>
|
113 | 108 | <groupId>org.apache.maven.plugins</groupId>
|
114 | 109 | <artifactId>maven-compiler-plugin</artifactId>
|
115 | 110 | <version>${maven.compiler.version}</version>
|
116 | 111 | <configuration>
|
117 | 112 | <source>${maven.compiler.source}</source>
|
118 | 113 | <target>${maven.compiler.target}</target>
|
| 114 | + <useIncrementalCompilation>false</useIncrementalCompilation> |
119 | 115 | </configuration>
|
120 | 116 | </plugin>
|
121 | 117 | </plugins>
|
122 | 118 | </pluginManagement>
|
123 | 119 | </build>
|
124 | 120 |
|
| 121 | + <profiles> |
| 122 | + <profile> |
| 123 | + <id>jdk8</id> |
| 124 | + <activation> |
| 125 | + <jdk>(,11)</jdk> <!-- < 11 --> |
| 126 | + </activation> |
| 127 | + <properties> |
| 128 | + <aspectj.version>1.9.7</aspectj.version> |
| 129 | + </properties> |
| 130 | + <dependencyManagement> |
| 131 | + <dependencies> |
| 132 | + <dependency> |
| 133 | + <groupId>org.aspectj</groupId> |
| 134 | + <artifactId>aspectjtools</artifactId> |
| 135 | + <version>${aspectj.version}</version> |
| 136 | + </dependency> |
| 137 | + </dependencies> |
| 138 | + </dependencyManagement> |
| 139 | + <build> |
| 140 | + <pluginManagement> |
| 141 | + <plugins> |
| 142 | + <plugin> |
| 143 | + <groupId>dev.aspectj</groupId> |
| 144 | + <artifactId>aspectj-maven-plugin</artifactId> |
| 145 | + <version>${aspectj.plugin.version}</version> |
| 146 | + <configuration> |
| 147 | + <source>${maven.compiler.source}</source> |
| 148 | + <target>${maven.compiler.target}</target> |
| 149 | + <complianceLevel>${maven.compiler.target}</complianceLevel> |
| 150 | + <Xlint>ignore</Xlint> |
| 151 | + <encoding>${project.build.sourceEncoding}</encoding> |
| 152 | + </configuration> |
| 153 | + <executions> |
| 154 | + <execution> |
| 155 | + <phase>process-sources</phase> |
| 156 | + <goals> |
| 157 | + <goal>compile</goal> |
| 158 | + <goal>test-compile</goal> |
| 159 | + </goals> |
| 160 | + </execution> |
| 161 | + </executions> |
| 162 | + <!-- Enforce aspectJ 1.9.7 --> |
| 163 | + <dependencies> |
| 164 | + <dependency> |
| 165 | + <groupId>org.aspectj</groupId> |
| 166 | + <artifactId>aspectjtools</artifactId> |
| 167 | + <version>${aspectj.version}</version> |
| 168 | + </dependency> |
| 169 | + </dependencies> |
| 170 | + </plugin> |
| 171 | + </plugins> |
| 172 | + </pluginManagement> |
| 173 | + </build> |
| 174 | + </profile> |
| 175 | + <profile> |
| 176 | + <id>jdk11plus</id> |
| 177 | + <activation> |
| 178 | + <jdk>[11,)</jdk> <!-- >= 11 --> |
| 179 | + </activation> |
| 180 | + <build> |
| 181 | + <pluginManagement> |
| 182 | + <plugins> |
| 183 | + <plugin> |
| 184 | + <groupId>dev.aspectj</groupId> |
| 185 | + <artifactId>aspectj-maven-plugin</artifactId> |
| 186 | + <version>${aspectj.plugin.version}</version> |
| 187 | + <configuration> |
| 188 | + <source>${maven.compiler.source}</source> |
| 189 | + <target>${maven.compiler.target}</target> |
| 190 | + <complianceLevel>${maven.compiler.target}</complianceLevel> |
| 191 | + <Xlint>ignore</Xlint> |
| 192 | + <encoding>${project.build.sourceEncoding}</encoding> |
| 193 | + </configuration> |
| 194 | + <executions> |
| 195 | + <execution> |
| 196 | + <phase>process-sources</phase> |
| 197 | + <goals> |
| 198 | + <goal>compile</goal> |
| 199 | + <goal>test-compile</goal> |
| 200 | + </goals> |
| 201 | + </execution> |
| 202 | + </executions> |
| 203 | + </plugin> |
| 204 | + </plugins> |
| 205 | + </pluginManagement> |
| 206 | + </build> |
| 207 | + </profile> |
| 208 | + </profiles> |
| 209 | + |
125 | 210 | </project>
|
0 commit comments