i left a few comments in the github issues and PRs...
# refreshversions
n
i left a few comments in the github issues and PRs but i guess i am still taking soem time to write out what would be important for me (and why i use refreshVersions) in relation to version catalogs first of all.. it is annoying to browse the entire toml file for versions when a plugin might be in
[plugins]
or
[versions]
and a library light have comemnts added by refreshVersion in
[libraries]
or
[versions]
• having
[versions]
on top and folding the other sections closed would be nice can refreshVersions be used to referente accessors to
libs.
? having
implementation(libs.dependency("com.kotlindiscord.kord.extensions:annotations"))
where ``dependency`` would register the dependency and return the reference to
libs.kord.extensions.annotations
(following the grouping rules: versiongroup + name to have a unique key) PS: i have no idea about internals and this might well be impossible.. so please take this as a "wish" but it seems like this could work
Copy code
fun AbstractExternalDependencyFactory.dependency(dependencyNoation: DepdnencyNotation): Provider<MinimalExternalModuleDependency> {
   val alias = TODO() // register dependency / add to version catalog / generate alias from version-key + artifactname (or just a cleaned up dependency notation if no grouping rules is available)
   // alias = "kord.extensions.annotations"
   return create(alias)
}
unless ofc refreshVersion can make it happen automatically under the hood would something similar be possible in the plugins block too ? there we have to call it like so:
alias(libs.plugin("org.jetbrains.kotlin.jvm"))
maybe ideally the way i use refreshVersion can stay the same.. drop in some dependency in one spot, have refreshVersion deal with adding it to the libraries, versions and whatnot for me. and lastly.. right now it seems like even after migration the toml file contains references to versions with
_
that cause
versions.properties
to be populated it would be nice to be able to fully switch, i assume that is planned those are the features i am hoping for...