java - gradle 中无法识别 antlr 插件
问题描述
我在 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 文档中有更多信息。
推荐阅读
- php - IIS 10 应用程序池停止响应 PHP REST API
- vuejs2 - 如何在 Vue 2 中计算数字
- php - 向 preg_replace_callback 模式添加额外的匹配
- c# - 如何使用亚马逊 MWS API 下载亚马逊报告
- json - Avro 编码二进制文件
- python - 为 python 安装 libtcod 在终端返回“访问被拒绝”
- python-3.x - 遍历字典列表以提取python中的特定键/值
- git - git svn fetch 操作的超时设置
- html - html 标签属性“data-setbg”在 React 项目中不起作用
- c# - 使用基类时如何通过接口强制执行函数调用约定