Skip to content

Commit 57be03f

Browse files
committed
Gradle 官方文档目录等
1 parent f386d27 commit 57be03f

File tree

2 files changed

+202
-0
lines changed

2 files changed

+202
-0
lines changed

gradle/Gradle_office_doc_catalog.md

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
# Gradle 官方文档目录谷歌翻译
2+
3+
4+
### 介绍
5+
6+
* [什么是 Gradle?](https://docs.gradle.org/current/userguide/what_is_gradle.html)
7+
* [Gradle 企业](https://gradle.com/)
8+
9+
### 什么是新的?
10+
11+
* [发行说明](https://docs.gradle.org/current/release-notes.html)
12+
* [升级 Gradle](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#upgrading-gradle)
13+
* [版本 7.X 到 8.0](https://docs.gradle.org/current/userguide/upgrading_version_7.html)
14+
* [版本 6.X 到 7.0](https://docs.gradle.org/current/userguide/upgrading_version_6.html)
15+
* [版本 5.X 到 6.0](https://docs.gradle.org/current/userguide/upgrading_version_5.html)
16+
* [版本 4.X 到 5.0](https://docs.gradle.org/current/userguide/upgrading_version_4.html)
17+
* [Gradle 的功能生命周期](https://docs.gradle.org/current/userguide/feature_lifecycle.html)
18+
* [兼容性说明](https://docs.gradle.org/current/userguide/compatibility.html)
19+
20+
### 快速开始
21+
22+
* [入门](https://docs.gradle.org/current/userguide/getting_started.html)
23+
* [安装 Gradle](https://docs.gradle.org/current/userguide/installation.html)
24+
* [样品](https://docs.gradle.org/current/samples/index.html)
25+
* [迁移到 Gradle](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#migrating-to-gradle)
26+
* [来自马文](https://docs.gradle.org/current/userguide/migrating_from_maven.html)
27+
* [来自蚂蚁](https://docs.gradle.org/current/userguide/migrating_from_ant.html)
28+
* [Gradle DSL 和 API](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#gradle-api)
29+
* [Javadoc](https://docs.gradle.org/current/javadoc/index.html?overview-summary.html)
30+
* [Groovy DSL 入门](https://docs.gradle.org/current/userguide/groovy_build_script_primer.html)
31+
* [Groovy DSL 参考](https://docs.gradle.org/current/dsl/index.html)
32+
* [Kotlin DSL 入门](https://docs.gradle.org/current/userguide/kotlin_dsl.html)
33+
* [Kotlin DSL API](https://gradle.github.io/kotlin-dsl-docs/api/)
34+
* [Groovy 到 Kotlin DSL 的迁移](https://docs.gradle.org/current/userguide/migrating_from_groovy_to_kotlin_dsl.html)
35+
* [构建故障排除](https://docs.gradle.org/current/userguide/troubleshooting.html)
36+
37+
### 运行 Gradle 构建
38+
39+
* [命令行界面](https://docs.gradle.org/current/userguide/command_line_interface.html)
40+
* [Gradle 包装器](https://docs.gradle.org/current/userguide/gradle_wrapper.html)
41+
* [自定义执行](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#customizing-execution)
42+
* [配置构建环境](https://docs.gradle.org/current/userguide/build_environment.html)
43+
* [配置 Gradle 守护进程](https://docs.gradle.org/current/userguide/gradle_daemon.html)
44+
* [使用初始化脚本](https://docs.gradle.org/current/userguide/init_scripts.html)
45+
* [执行多项目构建](https://docs.gradle.org/current/userguide/intro_multi_project_builds.html)
46+
47+
### 编写 Gradle 构建
48+
49+
* [学习基础知识](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#learning-the-basics)
50+
* [了解构建生命周期](https://docs.gradle.org/current/userguide/build_lifecycle.html)
51+
* [Gradle 管理的目录](https://docs.gradle.org/current/userguide/directory_layout.html)
52+
* [编写构建脚本](https://docs.gradle.org/current/userguide/tutorial_using_tasks.html)
53+
* [了解有关构建脚本的更多信息](https://docs.gradle.org/current/userguide/writing_build_scripts.html)
54+
* [使用 Gradle 插件](https://docs.gradle.org/current/userguide/plugins.html)
55+
* [使用文件](https://docs.gradle.org/current/userguide/working_with_files.html)
56+
* [使用日志记录](https://docs.gradle.org/current/userguide/logging.html)
57+
* [避免陷阱](https://docs.gradle.org/current/userguide/potential_traps.html)
58+
* [构建单个构建](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#authoring-multi-project-builds)
59+
* [创建基本的多项目构建](https://docs.gradle.org/current/userguide/multi_project_builds.html)
60+
* [声明子项目之间的依赖关系](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html)
61+
* [在子项目之间共享构建逻辑](https://docs.gradle.org/current/userguide/sharing_build_logic_between_subprojects.html)
62+
* [微调项目布局](https://docs.gradle.org/current/userguide/fine_tuning_project_layout.html)
63+
* [了解配置和执行](https://docs.gradle.org/current/userguide/multi_project_configuration_and_execution.html)
64+
* [构建软件产品](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#authoring-composite-builds)
65+
* [构建大型项目](https://docs.gradle.org/current/userguide/structuring_software_products.html)
66+
* [调整项目结构](https://docs.gradle.org/current/userguide/structuring_software_products_details.html)
67+
* [组合构建](https://docs.gradle.org/current/userguide/composite_builds.html)
68+
* [创作可持续建筑](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#authoring-sustainable-builds)
69+
* [组织构建逻辑](https://docs.gradle.org/current/userguide/organizing_gradle_projects.html)
70+
* [遵循最佳实践](https://docs.gradle.org/current/userguide/authoring_maintainable_build_scripts.html)
71+
* [开发 Gradle 任务](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#developing-tasks)
72+
* [创作任务](https://docs.gradle.org/current/userguide/more_about_tasks.html)
73+
* [编写 Gradle 任务类型](https://docs.gradle.org/current/userguide/custom_tasks.html)
74+
* [懒惰地配置任务](https://docs.gradle.org/current/userguide/lazy_configuration.html)
75+
* [避免不必要的任务配置](https://docs.gradle.org/current/userguide/task_configuration_avoidance.html)
76+
* [开发并行任务](https://docs.gradle.org/current/userguide/worker_api.html)
77+
* [开发 Gradle 插件](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#developing-plugins)
78+
* [开始插件开发](https://docs.gradle.org/current/userguide/custom_plugins.html)
79+
* [设计插件](https://docs.gradle.org/current/userguide/designing_gradle_plugins.html)
80+
* [实现插件](https://docs.gradle.org/current/userguide/implementing_gradle_plugins.html)
81+
* [测试插件](https://docs.gradle.org/current/userguide/testing_gradle_plugins.html)
82+
* [发布插件](https://docs.gradle.org/current/userguide/publishing_gradle_plugins.html)
83+
* [其他开发 Gradle 主题](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#other-developing-topics)
84+
* [编写自定义 Gradle 类型和服务注入](https://docs.gradle.org/current/userguide/custom_gradle_types.html)
85+
* [共享构建服务](https://docs.gradle.org/current/userguide/build_services.html)
86+
* [使用 TestKit 测试构建](https://docs.gradle.org/current/userguide/test_kit.html)
87+
* [在 Gradle 中使用 Ant](https://docs.gradle.org/current/userguide/ant.html)
88+
89+
### 编写 JVM 构建
90+
91+
* [构建 Java 和 JVM 项目](https://docs.gradle.org/current/userguide/building_java_projects.html)
92+
* [测试 Java 和 JVM 项目](https://docs.gradle.org/current/userguide/java_testing.html)
93+
* [Java 项目的工具链](https://docs.gradle.org/current/userguide/toolchains.html)
94+
* [管理依赖项](https://docs.gradle.org/current/userguide/dependency_management_for_java_projects.html)
95+
* [JVM 插件](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#jvm-plugins)
96+
* [Java 库插件](https://docs.gradle.org/current/userguide/java_library_plugin.html)
97+
* [Java 应用程序插件](https://docs.gradle.org/current/userguide/application_plugin.html)
98+
* [Java 平台插件](https://docs.gradle.org/current/userguide/java_platform_plugin.html)
99+
* [Groovy 插件](https://docs.gradle.org/current/userguide/groovy_plugin.html)
100+
* [斯卡拉插件](https://docs.gradle.org/current/userguide/scala_plugin.html)
101+
102+
### 使用依赖项
103+
104+
* [术语](https://docs.gradle.org/current/userguide/dependency_management_terminology.html)
105+
* [学习基础知识](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#learning-the-basics-dependency-management)
106+
* [什么是依赖管理?](https://docs.gradle.org/current/userguide/core_dependency_management.html)
107+
* [声明存储库](https://docs.gradle.org/current/userguide/declaring_repositories.html)
108+
* [声明依赖](https://docs.gradle.org/current/userguide/declaring_dependencies.html)
109+
* [了解库和应用程序的差异](https://docs.gradle.org/current/userguide/library_vs_application.html)
110+
* [查看和调试依赖关系](https://docs.gradle.org/current/userguide/viewing_debugging_dependencies.html)
111+
* [了解分辨率](https://docs.gradle.org/current/userguide/dependency_resolution.html)
112+
* [验证依赖关系](https://docs.gradle.org/current/userguide/dependency_verification.html)
113+
* [声明版本](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#declaring-dependency-versions)
114+
* [声明版本和范围](https://docs.gradle.org/current/userguide/single_versions.html)
115+
* [声明丰富的版本](https://docs.gradle.org/current/userguide/rich_versions.html)
116+
* [处理更改版本](https://docs.gradle.org/current/userguide/dynamic_versions.html)
117+
* [锁定版本](https://docs.gradle.org/current/userguide/dependency_locking.html)
118+
* [控制传递](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#controlling-transitive-dependencies)
119+
* [升级版本](https://docs.gradle.org/current/userguide/dependency_constraints.html)
120+
* [降级和排除](https://docs.gradle.org/current/userguide/dependency_downgrade_and_exclude.html)
121+
* [共享版本](https://docs.gradle.org/current/userguide/platforms.html)
122+
* [对齐依赖项](https://docs.gradle.org/current/userguide/dependency_version_alignment.html)
123+
* [处理互斥依赖](https://docs.gradle.org/current/userguide/dependency_capability_conflict.html)
124+
* [修复元数据](https://docs.gradle.org/current/userguide/component_metadata_rules.html)
125+
* [自定义分辨率](https://docs.gradle.org/current/userguide/resolution_rules.html)
126+
* [防止意外升级](https://docs.gradle.org/current/userguide/resolution_strategy_tuning.html)
127+
* [生产和消费图书馆的变体](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#modeling-features)
128+
* [声明库的能力](https://docs.gradle.org/current/userguide/component_capabilities.html)
129+
* [建模功能变体和可选依赖项](https://docs.gradle.org/current/userguide/feature_variants.html)
130+
* [了解变体选择](https://docs.gradle.org/current/userguide/variant_model.html)
131+
* [声明变体属性](https://docs.gradle.org/current/userguide/variant_attributes.html)
132+
* [分享项目成果](https://docs.gradle.org/current/userguide/cross_project_publications.html)
133+
* [转换神器](https://docs.gradle.org/current/userguide/artifact_transforms.html)
134+
* [出版图书馆](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#publishing)
135+
* [设置发布](https://docs.gradle.org/current/userguide/publishing_setup.html)
136+
* [了解 Gradle 模块元数据](https://docs.gradle.org/current/userguide/publishing_gradle_module_metadata.html)
137+
* [签署工件](https://docs.gradle.org/current/userguide/publishing_signing.html)
138+
* [自定义发布](https://docs.gradle.org/current/userguide/publishing_customization.html)
139+
* [Maven 发布插件](https://docs.gradle.org/current/userguide/publishing_maven.html)
140+
* [常春藤发布插件](https://docs.gradle.org/current/userguide/publishing_ivy.html)
141+
142+
### 优化构建时间
143+
144+
* [提高 Gradle 构建的性能](https://docs.gradle.org/current/userguide/performance.html)
145+
* [使用构建缓存](https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#build-cache)
146+
* [启用和配置](https://docs.gradle.org/current/userguide/build_cache.html)
147+
* [为什么使用构建缓存?](https://docs.gradle.org/current/userguide/build_cache_use_cases.html)
148+
* [了解影响](https://docs.gradle.org/current/userguide/build_cache_performance.html)
149+
* [学习基本概念](https://docs.gradle.org/current/userguide/build_cache_concepts.html)
150+
* [缓存 Java 项目](https://docs.gradle.org/current/userguide/caching_java_projects.html)
151+
* [缓存 Android 项目](https://docs.gradle.org/current/userguide/caching_android_projects.html)
152+
* [调试缓存问题](https://docs.gradle.org/current/userguide/build_cache_debugging.html)
153+
* [故障排除](https://docs.gradle.org/current/userguide/common_caching_problems.html)
154+
* [使用配置缓存](https://docs.gradle.org/current/userguide/configuration_cache.html)
155+
* [检查 Gradle 构建](https://scans.gradle.com/)
156+
157+
### 创作 C++/Swift 构建
158+
159+
* [构建 C++ 项目](https://docs.gradle.org/current/userguide/building_cpp_projects.html)
160+
* [测试 C++ 项目](https://docs.gradle.org/current/userguide/cpp_testing.html)
161+
* [构建 Swift 项目](https://docs.gradle.org/current/userguide/building_swift_projects.html)
162+
* [测试 Swift 项目](https://docs.gradle.org/current/userguide/swift_testing.html)
163+
164+
### CI 上的 Gradle
165+
166+
* [詹金斯](https://docs.gradle.org/current/userguide/jenkins.html)
167+
* [团队城市](https://docs.gradle.org/current/userguide/teamcity.html)
168+
* [特拉维斯 CI](https://docs.gradle.org/current/userguide/travis-ci.html)
169+
170+
### 参考
171+
172+
* [核心插件](https://docs.gradle.org/current/userguide/plugin_reference.html)
173+
* [Gradle 和第三方工具](https://docs.gradle.org/current/userguide/third_party_integration.html)
174+
* [用户手册 PDF](https://docs.gradle.org/current/userguide/userguide.pdf)

gradle/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Gradle
2+
3+
[官方文档目录(用于移动端查看)](Gradle_office_doc_catalog.md)
4+
5+
官方文档最佳实践:
6+
https://docs.gradle.org/current/userguide/authoring_maintainable_build_scripts.html
7+
8+
### 使用 Kotlin DSL
9+
10+
- IntelliJ IDEA 用户在编辑它们时应考虑使用 Kotlin DSL 构建脚本以获得卓越的 IDE 支持
11+
- 虽然首次使用时比 Groovy DSL 慢
12+
13+
详见官方文档:
14+
- https://docs.gradle.org/current/userguide/getting_started.html#command_line_vs_ides
15+
- https://docs.gradle.org/current/userguide/kotlin_dsl.html#kotdsl:limitations
16+
17+
### 选择 多项目构建 或 复合构建
18+
19+
| 中文名 | 多项目构建 | 复合构建 |
20+
| --- | ------------------- | ---------------- |
21+
| 英文名 | multi-project build | composite builds |
22+
| setting | include() | includeBuild() |
23+
| 设置脚本 | 单个 | 多个 |
24+
| 官方说明 | 统一构建 | 可单个构建 |
25+
| 类比Maven | 父项目 | 聚合 |
26+
27+
详见官方文档:
28+
- https://docs.gradle.org/current/userguide/authoring_maintainable_build_scripts.html#sec:avoiding_use_of_gradlebuild

0 commit comments

Comments
 (0)