Skip to content
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

Support refreshing versions for plugin jar artifacts #709

Open
2 of 3 tasks
mr3y-the-programmer opened this issue Nov 4, 2023 · 2 comments
Open
2 of 3 tasks

Support refreshing versions for plugin jar artifacts #709

mr3y-the-programmer opened this issue Nov 4, 2023 · 2 comments

Comments

@mr3y-the-programmer
Copy link
Contributor

⚠️ Is your feature request related to a problem? Please describe

RefreshVersions doesn't fetch updates when declaring plugin coordinates like normal dependency artifacts to use in build scripts or composite builds (i.e convention plugins), For example:

android-gradlePlugin = "com.android.tools.build:gradle:8.1.2"
ktlint-gradlePlugin = "org.jlleitschuh.gradle:ktlint-gradle:11.6.1"

So, I have to remember to update those dependencies whenever I bump their respective plugin marker artifacts' versions

💡 Describe the solution you'd like

Running .\gradlew refreshVersions should fetch updates for those dependencies like any other dependencies

🤚 Do you want to develop this feature yourself?

  • Yes
  • No
@LouisCAD
Copy link
Member

LouisCAD commented Nov 8, 2023

I don't see what "plugin jar artifacts" is when I look at the snippet you provided.

However, if this is in Kotlin or Groovy DSL Gradle code, you should be able to use versionFor, though it could be a bit verbose in your case.

@mr3y-the-programmer
Copy link
Contributor Author

mr3y-the-programmer commented Nov 8, 2023

maybe I wasn't clear enough. Those are defined in libs.versions.toml, they are gradle plugins but are declared the same way you declare normal dependencies (i.e "groupId:artifact:version"), I'm defining them this way to be able to use them as dependencies in convention plugins. similar to what now in android sample app does here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants