简体   繁体   English

Gradle 3不推荐使用“编译项目”和“编译文件”?

[英]Gradle 3 `compile project` and `compile files` deprecated?

How would I translate those to implementation or api ? 我该如何将其转换为implementationapi

Fx. Fx。 what should I replace those with? 我应该用那些替换什么?

compile project(':jabraServiceApi')
compile files('libs/samsung-digital-health-healthdata-1.2.1.jar')

Maybe compile project and compile files are still supported and should stay as they are? 也许仍然支持compile projectcompile files ,并且应该保持原样?

Gradle 3.4 introduced new Java Library plugin configurations configurations that allow you to control whether a dependency is published to the compile and runtime classpaths of projects that consume that library. Gradle 3.4引入了新的Java库插件配置配置,该配置使您可以控制是否将依赖项发布到使用该库的项目的编译和运行时类路径中。 The Android plugin is adopting these new dependency configurations, and migrating large projects to use them can drastically reduce build times. Android插件采用了这些新的依赖项配置,并且迁移大型项目以使用它们可以大大减少构建时间。 The following table helps you understand which configurations you should use. 下表可帮助您了解应使用哪些配置。 I already give the answer here please check compile configuration is now deprecated . 我已经在这里给出答案,请检查编译配置是否已弃用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM