我在gradle插件中添加了antlr,但是它不起作用
plugins {
id "antlr"
id 'war'
id "org.gretty" version "3.0.1"
}
和
dependencies {
// This dependency is used by the application.
compile 'com.google.guava:guava:28.1-jre'
compile 'javax.servlet:jstl:1.2'
antlr "org.antlr:antlr4:4.8"
}
但是当我运行gradle任务时却没有出现
最佳答案
如果我理解您的问题,则需要输入
gradle tasks --all
然后,您将在“其他任务”下找到鹿角任务。...
generateGrammarSource - Processes the main Antlr grammars.
generateTestGrammarSource - Processes the test Antlr grammars.
...
在Gradle CLI documentation上有更多信息。
关于java - Gradle无法识别Antlr插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61855165/