作者:ar_wen2402851455 | 来源:互联网 | 2023-01-21 19:08
当我在IntelliJ IDEA中打开“ 终端”窗口(“ 视图”->“工具窗口”->“终端”)并键入时gradle tasks
,这就是我看到的内容:
C:\Sathyaish\MyJavaAndSpringBootProject>gradle tasks
'gradle' is not recognized as an internal or external command,
operable program or batch file.
我认为IntelliJ IDEA会显示Gradle工具窗口(视图->工具窗口-> Gradle),并且IDE能够运行gradle任务并列出gradle依赖关系,因此IDE也会自动在我的计算机上安装gradle机。
我在机器上搜索了gradle文件夹,该文件夹也具有bin目录,但找不到任何文件夹。我知道我还没有自己安装gradle。
我确实在IntelliJ IDEA安装文件夹中找到了gradle文件夹:
C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.1\plugins\gradle>dir /b
lib
C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.1\plugins\gradle>dir lib /b
commons-io-2.2.jar
commons-lang-2.6.jar
gradle-base-services-3.5.jar
gradle-base-services-groovy-3.5.jar
gradle-cli-3.5.jar
gradle-core-3.5.jar
gradle-jps-plugin.jar
gradle-logging-3.5.jar
gradle-messaging-3.5.jar
gradle-model-core-3.5.jar
gradle-model-groovy-3.5.jar
gradle-native-3.5.jar
gradle-process-services-3.5.jar
gradle-resources-3.5.jar
gradle-tooling-api-3.5.jar
gradle-tooling-extension-api.jar
gradle-tooling-extension-impl.jar
gradle-version-info-3.5.jar
gradle-wrapper-3.5.jar
gradle.jar
guava-jdk5-17.0.jar
jansi-1.14.jar
kryo-2.22.jar
minlog-1.2.jar
native-platform-0.14.jar
native-platform-freebsd-amd64-libcpp-0.14.jar
native-platform-freebsd-amd64-libstdcpp-0.14.jar
native-platform-freebsd-i386-libcpp-0.14.jar
native-platform-freebsd-i386-libstdcpp-0.14.jar
native-platform-linux-amd64-0.14.jar
native-platform-linux-amd64-ncurses5-0.14.jar
native-platform-linux-amd64-ncurses6-0.14.jar
native-platform-linux-i386-0.14.jar
native-platform-linux-i386-ncurses5-0.14.jar
native-platform-linux-i386-ncurses6-0.14.jar
native-platform-osx-amd64-0.14.jar
native-platform-osx-i386-0.14.jar
native-platform-windows-amd64-0.14.jar
native-platform-windows-i386-0.14.jar
objenesis-1.2.jar
reflectasm-1.07.jar
resources_en.jar
C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.1\plugins\gradle>
如何gradle tasks
在IntelliJ IDEA 终端窗口中运行命令以列出所有gradle任务?我是否应该将C:\ Program Files \ JetBrains \ IntelliJ IDEA 2017.2.1 \ plugins \ gradle \ lib添加到计算机上的PATH环境变量中?