freeCodeCamp/guide/chinese/java/build-tools/index.md

25 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Build Tools
localeTitle: 构建工具
---
# 构建工具
Java构建工具允许您自定义构建以执行诸如指定需要包含在jar中的文件从Internet添加依赖项以及自动执行测试或github提交等任务的操作。构建工具还可以轻松地模块化您的项目。流行的构建工具包括[Gradle](https://gradle.org/)和[Maven](https://maven.apache.org/)
## 摇篮
Gradle构建脚本可以用Groovy或Kotlin编写并且可以高度自定义。大多数项目使用Gradle包装器允许它们在任何系统上构建即使没有安装Gradle也是如此。 Gradle是Android开发的推荐构建工具。
## Maven的
Maven构建文件是用XML编写的。与Gradle一样许多插件都是为Maven编写的用于自定义构建但Maven不是可自定义的因为您无法直接与Maven API交互。
### 更多信息:
https://gradle.org/
https://en.wikipedia.org/wiki/Gradle
https://maven.apache.org/what-is-maven.html
https://en.wikipedia.org/wiki/Apache\_Maven