mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
feat: display Gradle project version (#662)
This PR adds package version support for Gradle projects. The version number is extracted from the `build.gradle` file in the current directory, similar to existing support for other packages.
This commit is contained in:
@@ -943,7 +943,7 @@ symbol = "🤖 "
|
||||
|
||||
The `package` module is shown when the current directory is the repository for a
|
||||
package, and shows its current version. The module currently supports `npm`, `cargo`,
|
||||
and `poetry` packages.
|
||||
`poetry`, `composer`, and `gradle` packages.
|
||||
|
||||
- **npm** – The `npm` package version is extracted from the `package.json` present
|
||||
in the current directory
|
||||
@@ -953,6 +953,7 @@ and `poetry` packages.
|
||||
in the current directory
|
||||
- **composer** – The `composer` package version is extracted from the `composer.json` present
|
||||
in the current directory
|
||||
- **gradle** – The `gradle` package version is extracted from the `build.gradle` present
|
||||
|
||||
> ⚠️ The version being shown is that of the package whose source code is in your
|
||||
> current directory, not your package manager.
|
||||
|
||||
Reference in New Issue
Block a user