-
Notifications
You must be signed in to change notification settings - Fork 18
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
Plugin version management in version catalog #37
Comments
Thanks for the feedback! Yes it is possible to use the catalog there. But you have to use the
|
Thank you for the answer it's working great. I think it could be great to include it in this project too. I found it really nice to have everything in one place and I believe this it what the version catalog feature was created for. |
Not sure if my question is related or if I should open a different issue: dependencies {
api("org.apiguardian:apiguardian-api:1.1.2")
} with dependencies {
api(libs.apiguardian)
} given that my
The solution suggested above seems not to cover this scenario. |
From this discussion : https://discuss.gradle.org/t/using-version-catalog-plugins-in-convention-plugins/45660/6 but you could simplify with :
if you have follow the previous answer and have this in your
|
@malcolmSansen Thanks for the suggestion. I couldn't get it to work and I'm not sure it's worth going into the details since it'd be a hack anyways. I'm wondering why the concept of "one single library catalogue for everything" seems to be a no-brainer for me and is still so difficult to achieve in a build tool like Gradle. It may not be such a good idea in the first place. |
I'm not sure about it, but it seems that this features is more complicated to implements than we might expecting. Also it's still kind of new so maybe in a few version it will be better. |
From this issue : #19
The new setup for the plugin is really great , and having all the plugins in one place is very convenient.
However, I'm wondering if it's possible to use the TOML version catalogs to have all the version, dependencies and plugins in a single location.
I attempted to use the TOML version catalogs within
gradle/plugins/build.gradle.kts
, but it doesn't seem to work, or perhaps I'm doing it incorrectly.Could you please provide guidance on how to achieve this, if it's possible?
The text was updated successfully, but these errors were encountered: