Gradle compileOnly and Maven provided
问题 I have a simple project with the retrofit dependency. dependencies { ... implementation 'com.squareup.retrofit2:retrofit:2.8.1' } If i check the retrofit pom.xml I can find the OkHttp dependency as a compile maven scope that means the old compile gradle configuration as well. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache