Gradle 中的 compile, implementation, api 有什么区别?

在 Gradle 中,我们引用一个 library 依赖的时候,一般会使用 compile, implementation, api 等这几种方式,你知道什么时候该用什么吗?

Gradle - 构建 Java 应用程序

此教程会演示如何使用 Gradle 的 Build Init 插件创建遵循 Gradle 约定的新 Java 应用程序。

Gradle - 创建 Gradle 构建

根据此教程,你可以创建一个小型 Gradle 项目,这里面会涉及一些基础的 Gradle 命令,你可以对 Gradle 是如何管理项目的有个深刻的理解。

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×