Skip to content

Commit 31226c7

Browse files
committed
[pom] Allow support for freemarker 2.3.33 as it has one class listed as java 16
1 parent 0360114 commit 31226c7

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

pom.xml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<groupId>org.mybatis</groupId>
2525
<artifactId>mybatis-parent</artifactId>
2626
<version>44</version>
27-
<relativePath/>
27+
<relativePath />
2828
</parent>
2929

3030
<groupId>org.mybatis.scripting</groupId>
@@ -91,7 +91,7 @@
9191
<dependency>
9292
<groupId>org.freemarker</groupId>
9393
<artifactId>freemarker</artifactId>
94-
<version>2.3.32</version>
94+
<version>2.3.33</version>
9595
</dependency>
9696
<dependency>
9797
<groupId>org.apache.commons</groupId>
@@ -114,4 +114,23 @@
114114
</dependency>
115115
</dependencies>
116116

117+
<build>
118+
<plugins>
119+
<plugin>
120+
<groupId>org.apache.maven.plugins</groupId>
121+
<artifactId>maven-enforcer-plugin</artifactId>
122+
<configuration>
123+
<rules>
124+
<enforceBytecodeVersion>
125+
<excludes>
126+
<!-- Allow specific java 16 code to be allowed at 'freemarker/core/_Java16Impl' -->
127+
<exclude>org.freemarker:freemarker</exclude>
128+
</excludes>
129+
</enforceBytecodeVersion>
130+
</rules>
131+
</configuration>
132+
</plugin>
133+
</plugins>
134+
</build>
135+
117136
</project>

0 commit comments

Comments
 (0)