on-internet
← Community

The purpose of adding a plugin with "apply false" to the root project with version catalogs?

Stack Overflow ·

When following the instructions for migrating Jetpack Compose compiler to the dedicated Compose compiler Gradle plugin, I found this step a bit confusing: Add the Gradle plugin to the root build.gradle.kts file: plugins { // ... alias(libs.plugins.compose.compiler) apply false } The plugin itself is actually applied with same exact version in each submodule: Apply the plugin to every module that uses Jetpack Compose: plugins { // ... alias(libs.plugins.compose.compiler) } To me, step 2 seems redundant: the plugin itself doesn't execute anything in the root project the version of the plugin has

Comments

Sign in or sign up to comment and upvote.

No comments yet.