Hello Guys How can we add navigation safe args Gra...
# gradle
n
Hello Guys How can we add navigation safe args Gradle Plugin into version catlog toml file
Copy code
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version")
other plugins reference i am able to access in top level
build.gradle.kts
but when I have added nav safe args under toml [plugins] not able to access that particular plugin Not sure is it because of group name with “`:`”
Copy code
android-navsafe-args = { id = "androidx.navigation:navigation-safe-args-gradle-plugin", version.ref = "navSafeArgsPlugin" }
Can anyone please help me in this ? Apologies for posting same query on two channel. I was not aware about this channel
v
You mix the plugin id with the coordinates of the code artifact for that plugin. A plugin id never has a colon
Or put differently, don't add a plugin using
buildscript
block unless you have a very good reason, but apply or add it using the
plugins { ... }
block.
n
So usually before
:
mentioned should be considered as a plugin id ? Or it could be totally different ?
v
Could be totally different and most often is totally different. Also in one code artifact you can have many different plugins.