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

List plugin deps & surface Gradle build information in public API #1156

Open
badsyntax opened this issue Jan 18, 2022 · 1 comment
Open

List plugin deps & surface Gradle build information in public API #1156

badsyntax opened this issue Jan 18, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@badsyntax
Copy link
Collaborator

badsyntax commented Jan 18, 2022

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:

id 'com.diffplug.spotless' version '5.7.0'

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 badsyntax/vscode-spotless-gradle#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.

@badsyntax badsyntax added the enhancement New feature or request label Jan 18, 2022
@CsCherrYY
Copy link
Collaborator

CsCherrYY commented Jan 19, 2022

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?

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

No branches or pull requests

2 participants