Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the version catalog as the source of truth for plugin IDs #1528

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davidburstrom
Copy link
Contributor

The IDs stated in the build-logic build script must exactly match the plugin IDs in the version catalog file. This solution reduces the inherent duplication.

To avoid any IDE errors about missing plugin accessors when adding new plugins to the build-logic script, it's recommended to add the new ID in the version catalog first, then invoke Gradle (sync) in order to generate the accessor classes.

The IDs stated in the build-logic build script must exactly match the plugin
IDs in the version catalog file. This solution reduces the inherent
duplication.

To avoid any IDE errors about missing plugin accessors when adding new plugins
to the build-logic script, it's recommended to add the new ID in the version
catalog first, then invoke Gradle (sync) in order to generate the accessor
classes.
@@ -58,59 +58,59 @@ tasks {
gradlePlugin {
plugins {
register("androidApplicationCompose") {
id = "nowinandroid.android.application.compose"
id = libs.plugins.nowinandroid.android.application.compose.get().pluginId

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also use these as the single source of truth for all id matchers used in the project?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which "matchers" are you referring to? In the plugins {} blocks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants