palantir / gradle-git-version

a Gradle plugin that uses `git describe` to produce a version string.
Apache License 2.0
383 stars 76 forks source link

Git on WSL not being detected #841

Open Maddin-M opened 2 months ago

Maddin-M commented 2 months ago

What happened?

I am on Windows and have Git not installed on my PC, but I use WSL and its Git installation, which works fine with IntelliJ and Android Studio overall. Then I tried to build a project that uses this plugin, and am greeted with the message: Git not found in project, pointing to this line:

val versionDetails: groovy.lang.Closure<com.palantir.gradle.gitversion.VersionDetails> by extra
val details = versionDetails()

Here's a screenshot of Android Studio correctly finding Git: grafik

What did you want to happen?

I wanted gradle-git-version to detect Git and work normally.