项目构建工具Gradle中api、implementation和compile的区别
我们在gradle中引用第三方maven库时,一般通过下面的语句去引用:
compile 'org.springframework.boot:spring-boot-starter-aop'
然后sync project,就能成功引用对应的包到项目之中了,十分方便。除了使用compile关键字,使用implementation和api也能将包引用到项目中:
implementation 'org.springframework.boot:spring-boot-starter-aop'
api 'org
转载
2020-12-14 15:18:45 ·
760 阅读 ·
0 评论