File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 188188 </plugin >
189189 </plugins >
190190 </build >
191+ <profiles >
192+ <!-- JDK 8: no release flag -->
193+ <profile >
194+ <id >jdk8</id >
195+ <activation >
196+ <jdk >[1.8,1.9)</jdk >
197+ </activation >
198+ <build >
199+ <plugins >
200+ <plugin >
201+ <groupId >org.apache.maven.plugins</groupId >
202+ <artifactId >maven-compiler-plugin</artifactId >
203+ <version >3.11.0</version >
204+ <configuration >
205+ <source >1.8</source >
206+ <target >1.8</target >
207+ <compilerArgs >
208+ <arg >-Xlint:deprecation</arg >
209+ <arg >-Xlint:unchecked</arg >
210+ </compilerArgs >
211+ </configuration >
212+ </plugin >
213+ </plugins >
214+ </build >
215+ </profile >
216+
217+ <!-- JDK 9+: prefer release -->
218+ <profile >
219+ <id >jdk9plus</id >
220+ <activation >
221+ <jdk >[9,)</jdk >
222+ </activation >
223+ <build >
224+ <plugins >
225+ <plugin >
226+ <groupId >org.apache.maven.plugins</groupId >
227+ <artifactId >maven-compiler-plugin</artifactId >
228+ <version >3.11.0</version >
229+ <configuration >
230+ <release >8</release >
231+ <compilerArgs >
232+ <arg >-Xlint:deprecation</arg >
233+ <arg >-Xlint:unchecked</arg >
234+ </compilerArgs >
235+ </configuration >
236+ </plugin >
237+ </plugins >
238+ </build >
239+ </profile >
240+ </profiles >
191241
192242 <distributionManagement >
193243 <repository >
You can’t perform that action at this time.
0 commit comments