gradleApi() 和localGroovy()区别
来源:3-7 实战:插件工程建立

qq_夜_71
2023-07-25
gradleApi() 和localGroovy()区别是什么?
写回答
1回答
-
你好!二者同样是声明依赖,主要是依赖的对象不同:
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的依赖。
以上内容来自于官方文档。
012023-07-25
相似问题