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:
Kevin Lane
2020-02-21 11:12:21 -08:00
committed by GitHub
parent aedfe42a8c
commit ce540fff7a
4 changed files with 107 additions and 27 deletions
+2 -1
View File
@@ -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.