What is minimal sample Gradle project for ANTLR4 (with antlr plugin)?

后端 未结 7 1419
陌清茗
陌清茗 2021-02-14 03:47

I have created new Gradle project, added

apply plugin: \'antlr\'

and

dependencies {
    antlr \"org.antlr:antlr4:4.5.3\"
         


        
7条回答
  •  北海茫月
    2021-02-14 04:38

    Gradle STS plugin doesn't generate source files for antlr4. It generates the misleading output as:

    [sts] -----------------------------------------------------
    [sts] Starting Gradle build for the following tasks: 
    [sts]      generateGrammarSource
    [sts] -----------------------------------------------------
    :generateGrammarSource UP-TO-DATE
    

    Uninstalled this old plugin and used from command line..It works !

提交回复
热议问题