是否有适用于 Eclipse Luna 的 Gradle 插件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25333657/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 05:23:31  来源:igfitidea点击:

Is there a Gradle plugin for Eclipse Luna?

eclipseeclipse-plugingradleeclipse-luna

提问by PM 77-1

I'm trying to integrate Eclipse Lunawith Gradle.

我正在尝试Eclipse LunaGradle.

Eclipse Integration GradleGitHub page includes instructions for Installing Gradle Tooling from update site.

Eclipse 集成 GradleGitHub 页面包含从更新站点安装 Gradle 工具的说明。

I followed the instructions for the release (stable) version.

我按照发布(稳定)版本的说明进行操作。

After I selected all the components (as shown below) I proceeded with installation.

选择所有组件(如下所示)后,我继续安装。

It didn't go as expected and brought me to the Install Remediation Page(below) that showed that only Gradle IDEcomponent could be installed. ( Click herefor larger image). enter image description here

它没有按预期进行,并将我带到安装修复页面(如下所示),该页面显示只能安装Gradle IDE组件。(点击这里查看大图)。 在此处输入图片说明

At this point I'm not sure what caused the problem and what to do about.

在这一点上,我不确定是什么导致了问题以及如何处理。

回答by Behnam

The plugin you are using is wrong. There is an update for Luna here.

您使用的插件是错误的。Luna这里有一个更新。

You can alternatively install the plugin directly within eclipse with this integration link.

您也可以使用此集成链接直接在 eclipse 中安装插件。

回答by vogella

Gradleware now offers direct support for the Eclipse IDE. See http://www.vogella.com/tutorials/EclipseGradle/article.htmlfor an introduction.

Gradleware 现在直接支持 Eclipse IDE。有关介绍,请参阅http://www.vogella.com/tutorials/EclipseGradle/article.html

回答by Pritesh Mhatre

In addition to plugin memtioned by @Campiador. You must have supported project nature in your eclipse's .projectfile in order for your project to show up in "Gradle Tasks" view.

除了@Campiador 提到的插件。您必须在 eclipse 的.project文件中支持项目性质,以便您的项目显示在“Gradle Tasks”视图中。

See following example:

请参阅以下示例:

Add one or more natures in build.gradlefile:

build.gradle文件中添加一种或多种性质:

eclipse.project {
  natures 'org.springsource.ide.eclipse.gradle.core.nature', 'org.eclipse.jdt.core.javanature'
}

After this change, just run gradle eclipsecommand from your shell/command prompt. Newly generated .projectwill have proper natures in it. Just refresh your project in eclipse and now you will see your project in Gradle Tasksview.

进行此更改后,只需从 shell/命令提示符运行gradle eclipse命令。新生成的.project将具有适当的性质。只需在 eclipse 中刷新您的项目,现在您将在Gradle Tasks视图中看到您的项目。