File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 42
42
<properties >
43
43
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
44
44
45
+ <!-- For Java 8; Java 9 and newer will pay attention to maven.compiler.release, specified in a Java-9-and-later
46
+ profile -->
47
+ <maven .compiler.source>8</maven .compiler.source>
48
+ <maven .compiler.target>8</maven .compiler.target>
49
+
45
50
<jmh .version>1.32</jmh .version>
46
51
<junit .version>5.8.1</junit .version>
47
52
</properties >
112
117
<groupId >org.apache.maven.plugins</groupId >
113
118
<artifactId >maven-compiler-plugin</artifactId >
114
119
<version >3.8.1</version >
115
- <configuration >
116
- <source >1.8</source >
117
- <target >1.8</target >
118
- </configuration >
119
120
120
121
<executions >
121
122
<execution >
236
237
</build >
237
238
238
239
<profiles >
240
+ <profile >
241
+ <id >java-8-release-target</id >
242
+ <activation >
243
+ <jdk >[9,)</jdk >
244
+ </activation >
245
+ <properties >
246
+ <maven .compiler.release>8</maven .compiler.release>
247
+ </properties >
248
+ </profile >
249
+
239
250
<profile >
240
251
<id >release-sign-artifacts</id >
241
252
<activation >
You can’t perform that action at this time.
0 commit comments