starship
starship copied to clipboard
feat: add gradle module
I added a module to display the version of Gradle.
Description
I added 2 different strategies which are available via the config, because invoking the gradle executable is really slow. Because almost every gradle project uses the Gradle Wrapper i made it the default option to parse the gradle version from the wrappers config file.
Motivation and Context
It adds support for Gradle, a popular choice for the build system in the Java and Kotlin Ecosystem.
Screenshots (if appropriate):
How Has This Been Tested?
- [ ] I have tested using MacOS
- [x] I have tested using Linux
- [x] I have tested using Windows
I tested my changes on Windows and on a GitHub codespace, I don't own a device running macOS so I can't test that sadly.
Checklist:
- [x] I have updated the documentation accordingly.
- [x] I have updated the tests accordingly.
Please also update the presets in docs/.vuepress/public/presets/toml
.
Now that I think about it, I think it would be better to drop the whole (./)gradle(w) --version
execution thing and only provide the wrapper strategy, because the execution is so slow that it would time out most of the time and most gradle users use the wrapper anyway.
Now that I think about it, I think it would be better to drop the whole
(./)gradle(w) --version
execution thing and only provide the wrapper strategy, because the execution is so slow that it would time out most of the time and most gradle users use the wrapper anyway.
That sounds good.
Hi! I finally found time and motivation to apply the requested changes and merge the conflicts. I'm sorry that it took some time
I'm confused, when i generate the schema locally, there are no changes.
@NyCodeGHG Looks like a text encoding issue, I will go ahead and update it.
oh sorry, i didn't see your message, yes it was a encoding issue caused by powershell
Thank you for your contribution @NyCodeGHG and thank you for reviewing @davidkna.