gpt4 book ai didi

java - Gradle无法识别Antlr插件

转载 作者:行者123 更新时间:2023-12-03 05:04:26 27 4
gpt4 key购买 nike

我在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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com