gpt4 book ai didi

elasticsearch - 如何使用gradle构建Elasticsearch源代码?

转载 作者:行者123 更新时间:2023-12-02 22:59:08 28 4
gpt4 key购买 nike

我从以下位置下载elasticsearch源代码:https://github.com/elastic/elasticsearch

我发现有一个build.gradle文件,并且已经安装了gradle,
怎么建源码呢?

enter image description here

最佳答案

在存储库的自述文件中有一种构建方式的说明。根据它:

Building from Source

Elasticsearch uses Gradle for its build system. You’ll need to have version 2.13 of Gradle installed.

In order to create a distribution, simply run the gradle assemble command in the cloned directory.

The distribution for each project will be created under the build/distributions directory in that project.

See the TESTING file for more information about running the Elasticsearch test suite.



因此,您所需要做的就是进入根目录并在命令行调用 gradle assemble,如果正确安装了Gradle,您将在 build/distributions目录下找到所有 Artifact 。

关于elasticsearch - 如何使用gradle构建Elasticsearch源代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40924671/

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