gradle 和 gradle-experimental 之间有什么区别?

Whats the difference between gradle and gradle-experimental?

我知道新版本都支持 android 应用程序的 NDK。 但是许多插件不适用于 gradle-experimental.

What is gradle?

Gradle is an advanced build system as well as an advanced build toolkit allowing to create custom build logic through plugins.

What is gradle-experimental?

The new experimental plugin is based on Gradle’s new component model mechanism, which allows significant reduction in configuration time. It also includes NDK integration for building JNI applications. This user guides provides details on how to use it and highlights the difference between the new plugin and the original plugin.

WARNING: Note that this is plugin is at the experimental stage. The Gradle API for the new component model is not final, which means it’ll only work with a specific version of Gradle until the APIs are final.

Additionally, the DSL is likely change significantly, as APIs to create the DSL are finalized.

This is a very early preview of the plugin for feedback on performance and NDK integration.

本质上,gradle-experimental 是一项正在进行的工作(如上所述 此插件处于实验阶段)gradle 本身应该成为未来。


打个比方:
一所房子是几年前建造的,经过了很多改进。一切就绪,看起来已经完成。今天,它是一个您知道如果住在其中就会安全的地方。

此时正在建造另一栋房子,因为上面房子的业主有搬家的打算。有些房间已经建成,有些还没有。有些门和 windows 已经到位,有些甚至还没有订购。有些地区他们甚至还不知道要做什么。有些房间可能看起来已经完工,但它们很可能随时会重新装修。天花板可能会倒塌,地板可能会消失,只有当它已经发生时你才会知道。这所房子目前居住不安全。

Gradle是第一个房子
Gradle-实验是二宫


我认为现阶段比较它们没有多大用处。如果您出于任何原因并非绝对需要使用 gradle-experimental,请坚持使用当前且稳定的 gradle.