Gradle Implementation vs. Compile Dependencies

preview_player
Показать описание
Gradle finally removed "compile" dependencies in the latest Gradle versions.

But how do you update "compile" to "implementation", get onto newer Gradle versions, and have you build running like a well oiled machine?

▶️ Watch next
Рекомендации по теме
Комментарии
Автор

Thank you so much! This kind of basics/background/history stuff is covered pretty much nowhere else and it's incredibly helpful to learn anyway to understand existing code.

henninghoefer
Автор

compile and implementation are not equivalent.

Compile/api will add the dependency to both compile/runtime classpaths of a consumer, implementation only adds to the runtime classpath of the consumer.

You should just remove this (and provide a replacement if need be) because it's wrong and will needlessly confuse people.

nicholasleach