Skip to content

Commit a7a6504

Browse files
committed
#1134 Ensure that JDK 11 is used to build the release artifacts
1 parent 6204b96 commit a7a6504

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

pom.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@
266266
<profiles>
267267
<profile>
268268
<id>release</id>
269+
<properties>
270+
<maven.test.skip>true</maven.test.skip>
271+
<skipTests>true</skipTests>
272+
</properties>
269273
<build>
270274
<plugins>
271275
<plugin>
@@ -308,6 +312,25 @@
308312
</execution>
309313
</executions>
310314
</plugin>
315+
<plugin>
316+
<groupId>org.apache.maven.plugins</groupId>
317+
<artifactId>maven-enforcer-plugin</artifactId>
318+
<executions>
319+
<execution>
320+
<id>enforce-jdk</id>
321+
<goals>
322+
<goal>enforce</goal>
323+
</goals>
324+
<configuration>
325+
<rules>
326+
<requireJavaVersion>
327+
<version>[11, 12)</version>
328+
</requireJavaVersion>
329+
</rules>
330+
</configuration>
331+
</execution>
332+
</executions>
333+
</plugin>
311334
</plugins>
312335
</build>
313336
</profile>

0 commit comments

Comments
 (0)