如何在Windows上运行Gradle

huangapple 未分类评论46阅读模式
英文:

How to run gradle on windows

问题

如何将现有的Maven项目转换为Gradle项目?

我在查找相同问题的答案时阅读了许多回答。但是我卡在一个地方,不知道如何继续。

我遵循的步骤:

  1. 安装了Gradle 2.7
  2. 在环境中添加了Gradle的主目录和路径
  3. 在C:目录中检查了Gradle -v命令。正常工作。
  4. 尝试从项目目录运行Gradle init命令。在项目目录下,所有Gradle命令都无法运行。“未识别Gradle命令”。我的项目是一个完整的Maven Spring Cloud Stream项目。

请告诉我我可能做错了什么,以及如何使其工作。

英文:

How to convert existing Maven project to Gradle project?

I read many answers in for the same. But I'm stuck at a point and don't know how to proceed.

Steps I followed:

  1. installed Gradle 2.7
  2. Added Gradle home and path in environment
  3. checked Gradle -v cmd from C: directory. Working fine.
  4. trying to run Gradle init command from project directory. NONE OF THE GRADLE CMD IS WORKING FROM PROJECT DIRECTORY. "Gradle CMD not recognised". My project is a complete maven spring cloud stream project.

Kindly let me know what I might be doing wrong and how to make it work.

huangapple
  • 本文由 发表于 2020年4月10日 15:22:49
  • 转载请务必保留本文链接:https://java.coder-hub.com/61135695.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定