Skip to content

Commit 2d7c0c2

Browse files
committed
Provide dependency management for Antlr 2
Hibernate depends on antlr:antlr:2.7.7 (the latest version on Antlr 2) and fails with earlier 2.7.x versions due to a missing method. This can cause problems for Maven users if they also depend on something that pulls in an earlier version of Antlr, such as spring-boot-starter-velocity. Gradle users are unaffected as, when multiple versions of a dependency are found in the graph, Gradle will choose the latest version. This commit adds dependency management for antlr:antlr:2.7.7 to ensure that the latest, and Hibernate compatible, version of Antlr 2 is used. Closes gh-2814
1 parent 0f14210 commit 2d7c0c2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spring-boot-dependencies/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<spring-boot.version>1.2.4.BUILD-SNAPSHOT</spring-boot.version>
4848
<!-- Third Party -->
4949
<activemq.version>5.10.1</activemq.version>
50+
<antlr2.version>2.7.7</antlr2.version>
5051
<aspectj.version>1.8.5</aspectj.version>
5152
<atomikos.version>3.9.3</atomikos.version>
5253
<bitronix.version>2.1.4</bitronix.version>
@@ -410,6 +411,11 @@
410411
</dependency>
411412

412413
<!-- Third Party -->
414+
<dependency>
415+
<groupId>antlr</groupId>
416+
<artifactId>antlr</artifactId>
417+
<version>${antlr2.version}</version>
418+
</dependency>
413419
<dependency>
414420
<groupId>ch.qos.logback</groupId>
415421
<artifactId>logback-classic</artifactId>

0 commit comments

Comments
 (0)