trying to add a specific jar to a version catalog ...
# community-support
d
trying to add a specific jar to a version catalog that is currently resolved using this notation:
Copy code
implementation "com.my-company:my-project:my-version:spec"
I haven't been able to find a way to declare the ':spec' specific jar within the confines of the version catalog -- any ideas?
v
Yes, don't :-) The version catalog is about coordinates and versions. Classifier (the "spec"), or artifact extension (the thing after @ in string notation) you specify when using the version catalog entry.
d
That totally makes sense - the version catalog is just the main descriptor... In the version catalog notation, then, when I have implementation(libs.myLibraryReference) where do I put ':spec' ?
Oh, I found it.... // build.gradle.kts dependencies { // Using the variantOf helper for more structured declaration implementation(variantOf(libs.netty.epoll) { classifier("linux-x86_64") }) // Alternatively, using the artifact block implementation(libs.netty.epoll) { artifact { classifier = "linux-x86_64" } } }