[hibernate-dev] missing ANTLR dependency from gradle built pom.xml

Sanne Grinovero sanne.grinovero at gmail.com
Fri Jan 14 13:38:51 EST 2011


Hello,
It seems that ANTLR is missing from the pom.xml generated by the new
gradle build of Hibernate Core.

The following patch seems to fix it but I couldn't find any
information on the "antlr( libraries.antlr )" line, from the
documentation is seems it's only being used to choose the ANTLR
version to use to generate the parser code, but I couldn't find an
option to also include it as dependency so I added an additional line.

Could anybody confirm this change is right? (It seems to work).

diff --git a/hibernate-core/hibernate-core.gradle
b/hibernate-core/hibernate-core.gradle
index 59f80aa..4f28e93 100644
--- a/hibernate-core/hibernate-core.gradle
+++ b/hibernate-core/hibernate-core.gradle
@@ -12,6 +12,7 @@ dependencies {
     compile( libraries.commons_annotations )
     compile( libraries.jpa )
     antlr( libraries.antlr )
+    compile( libraries.antlr )
     provided( libraries.javassist )
     provided( libraries.cglib ) {
         transitive = true

thanks,
Sanne



More information about the hibernate-dev mailing list