gradleApi() 和localGroovy()区别

来源:3-7 实战:插件工程建立

qq_夜_71

2023-07-25

gradleApi() 和localGroovy()区别是什么?

写回答

1回答

allenfeng

2023-07-25

你好!二者同样是声明依赖,主要是依赖的对象不同:

gradleApi(): Creates a dependency on the API of the current version of Gradle.

localGroovy(): Creates a dependency on the Groovy that is distributed with the current version of Gradle.


即这两个调用,分别声明了对Gradle框架Groovy语言的API的依赖。


以上内容来自于官方文档





0
1
qq_夜_71
非常感谢!
2023-07-25
共1条回复

Android 应用程序构建实战+原理精讲

深度掌握 Gradle 使用,系统性学习 Android 应用构建知识

450 学习 · 116 问题

查看课程