How did you add PATH? Did you reboot after adding PATH? I tried the following command in PowerShell and it works:
C:\Users\purofle [(unknown)]> $env:Path += 'C:\Users\purofle\Downloads\gradle-8.12\bin'
C:\Users\purofle [(unknown)]> gradle --version
Welcome to Gradle 8.12!
Here are the highlights of this release:
- Enhanced error and warning reporting with the Problems API
- File-system watching support on Alpine Linux
- Build and test Swift 6 libraries and apps
For more details see https://docs.gradle.org/8.12/release-notes.html
------------------------------------------------------------
Gradle 8.12
------------------------------------------------------------
Build time: 2024-12-20 15:46:53 UTC
Revision: a3cacb207fec727859be9354c1937da2e59004c1
Kotlin: 2.0.21
Groovy: 3.0.22
Ant: Apache Ant(TM) version 1.10.15 compiled on August 25 2024
Launcher JVM: 17.0.13 (Azul Systems, Inc. 17.0.13+11-LTS)
Daemon JVM: C:\Users\purofle\.jdks\azul-17.0.13 (no JDK specified, using current Java home)
OS: Windows 11 10.0 amd64