microsoft / microsoft/vscode-spring-initializr
Support Edit Starters for gradle project
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 79
- Forks
- 40
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 20
Description
I'd like Edit Starters command to support gradle projects. It appears to only support maven projects (searches for pom.xml) files. It says it works by clicking on build.gradle and running Edit Starters, but I don't believe it works.
I think the gradle language server could help in this regard. I posted a question to their repository to ask them about it. It seems like the parsing of gradle files is something that we wouldn't want to just do a search and replace on. It seems like it would be straightforward based upon the dependencies that it pulls down. i.e. we'd need to map runtime -> runtimeOnly, compile -> compileOnly, etc. and handle the toRemove and to Add by appropriately.
How should it decide to handle the maven or gradle project? Should we only look for build.gradle if pom.xml can't be found? We could change the error msg to cannot find pom.xml or build.gradle. If it finds build.gradle, we'll use the language server to remove unwanted dependencies and add needed ones.
Is this something we can implement?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Edit Starters command and its current pom.xml lookup, then compare that flow with build.gradle handling. Investigate whether the Gradle language server can add and remove dependencies, including the runtime-to-runtimeOnly and compile-to-compileOnly mappings mentioned here. Done means the command selects the appropriate Maven or Gradle project and updates dependencies without relying on search and replace.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- spring-boot, typescript
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100