简体   繁体   English

IntelliJ IDEA中对Gradle的支持:空工具窗口

[英]Gradle support in IntelliJ idea: empty tool window

I've got a gradle opensource project I want to tinker with a bit. 我有一个gradle开放源代码项目,我想稍作修改。

Said project is here: https://github.com/Blood-Asp/GT5-Unofficial 所述项目如下: https//github.com/Blood-Asp/GT5-Unofficial

When I try to import it into IntelliJ IDE it kind of works (as in - ide does it stuff reading up sources, does gradle wrapper downloads, etc) but IDEA doesn't see any gradle tasks. 当我尝试将其导入IntelliJ IDE时,它可以正常工作(例如-ide会填充源代码,gradle包装程序下载等),但是IDEA看不到任何gradle任务。 I --suppose-- this's like that due to lack of gradlew wrapper. 我 - 假设 - 这就像是由于缺乏gradlew包装。

When I run gradle <taskname> or gradle <tasks> by hand in project directory, I see all the tasks and I can run them. 当我在项目目录中手动运行gradle <taskname>gradle <tasks> ,我看到了所有任务并且可以运行它们。

What can be done to allow IDEA to see the gradle tasks as well? 如何让IDEA看到gradle任务呢?

did you first run the setupDecompWorkspace? 你第一次运行setupDecompWorkspace吗?

The usual process for me setting up a Gradle project in Idea for Forge is as follows 我在Idea for Forge中设置Gradle项目的常规过程如下

Command Line : gradlew setupDecompWorkspace 命令行:gradlew setupDecompWorkspace

Import Gradle project into IDEA 将Gradle项目导入IDEA

look on the gradle view in idea for genIntellijRuns and run that within idea 在想法中查看genIntellijRuns的gradle视图,然后在想法中运行

Close and reopen the Project. 关闭并重新打开该项目。

Program 程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM