Nikky
03/04/2022, 11:46 AM[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
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...