[英]antlr plugin not recognized in gradle
I Added the antlr in gradle plugins but it doesn't work我在 gradle 插件中添加了 antlr,但它不起作用
plugins {
id "antlr"
id 'war'
id "org.gretty" version "3.0.1"
}
and和
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"
}
but when i run gradle tasks it doesn't appear但是当我运行 gradle 任务时它没有出现
If I understand your question, you need to type如果我理解你的问题,你需要输入
gradle tasks --all
Then you'll find the antler tasks under "Other tasks".然后你会在“其他任务”下找到鹿角任务。
...
generateGrammarSource - Processes the main Antlr grammars.
generateTestGrammarSource - Processes the test Antlr grammars.
...
There is more info at the Gradle CLI documentation .在 Gradle CLI 文档中有更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.