vscode-gradle
vscode-gradle copied to clipboard
List plugin deps & surface Gradle build information in public API
Is your feature request related to a problem? Please describe.
I need to add compatibility checks to the vscode-spotless-gradle
extension. The extension relies on minimum Gradle & Spotless Gradle versions, and I'd like to check this and show a message to the user if the versions don't match.
Describe the solution you'd like It would be ideal if we could access Gradle build information via the public api. I'll need the Gradle version, and a list of dependencies & versions. Unfortunately it seems the current implementation does not list plugin dependencies, so a change would be required to surface plugin dependencies, for example: https://github.com/microsoft/vscode-gradle/blob/43936abbfe0b91224a7837578ea827257c677714/build.gradle#L5
Describe alternatives you've considered
I haven't thought of alternatives, I think providing this information from vscode-gradle
is the correct approach, but i'm open for alternative approaches.
Additional context See https://github.com/badsyntax/vscode-spotless-gradle/issues/281
I am open to attempting this myself with a PR, but it's been a while since I've worked on this project. Let me know if you'd like me to try.
are you going to get
- the plugin information. e.g., { id: "com.diffplug.spotless", version: "5.7.0" }
- the using Gradle version. e.g., 7.3
from a specific project?