groovy git commit: Rename configuration antlr to antlr2

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

groovy git commit: Rename configuration antlr to antlr2

Daniel.Sun
Repository: groovy
Updated Branches:
  refs/heads/master 24e30be40 -> e49f69a09


Rename configuration antlr to antlr2


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/e49f69a0
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/e49f69a0
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/e49f69a0

Branch: refs/heads/master
Commit: e49f69a09feaf004e2664c24bd641681f0beb984
Parents: 24e30be
Author: sunlan <[hidden email]>
Authored: Sat Jul 22 18:38:52 2017 +0800
Committer: sunlan <[hidden email]>
Committed: Sat Jul 22 18:38:52 2017 +0800

----------------------------------------------------------------------
 build.gradle | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/e49f69a0/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 10edd49..3b36700 100644
--- a/build.gradle
+++ b/build.gradle
@@ -151,7 +151,7 @@ configurations {
     tools
     examplesCompile.extendsFrom compile
     examplesRuntime.extendsFrom examplesCompile
-    antlr
+    antlr2
     spec
 }
 
@@ -255,7 +255,7 @@ dependencies {
 
 // TODO use antlr plugin
 //    antlr "antlr:antlr:$antlrVersion"
-    antlr "org.apache.ant:ant-antlr:$antVersion"
+    antlr2 "org.apache.ant:ant-antlr:$antVersion"
 
     testCompile project(':groovy-ant')
     testCompile project(':groovy-test')
@@ -356,7 +356,7 @@ tasks.withType(Jar) {
 }
 
 task ensureGrammars {
-    description = 'Ensure all the Antlr generated files are up to date.'
+    description = 'Ensure all the Antlr2 generated files are up to date.'
     ext.antlrDirectory = "$projectDir/src/main/org/codehaus/groovy/antlr"
     ext.groovyParserDirectory = "$ext.antlrDirectory/parser"
     ext.javaParserDirectory = "$ext.antlrDirectory/java"
@@ -370,15 +370,15 @@ task ensureGrammars {
         new File(groovyOutDir).mkdirs()
         new File(javaOutDir).mkdirs()
         ant {
-            taskdef(name: 'antlr',
+            taskdef(name: 'antlr2',
                     classname: 'org.apache.tools.ant.taskdefs.optional.ANTLR',
-                    classpath: configurations.antlr.asPath)
+                    classpath: configurations.antlr2.asPath)
 
             mkdir dir: ext.groovyParserDirectory
-            antlr(target: "$ext.antlrDirectory/groovy.g", outputdirectory: ext.groovyOutDir) {
+            antlr2(target: "$ext.antlrDirectory/groovy.g", outputdirectory: ext.groovyOutDir) {
                 classpath path: configurations.compile.asPath
             }
-            antlr(target: "$ext.javaParserDirectory/java.g", outputdirectory: ext.javaOutDir) {
+            antlr2(target: "$ext.javaParserDirectory/java.g", outputdirectory: ext.javaOutDir) {
                 classpath path: configurations.compile.asPath
             }
         }

Apache Groovy committer & PMC member

Blog: http://blog.sunlan.me
Twitter: @daniel_sun