You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You must have git-lfs installed before cloning the repo in order to build from source. Otherwise only the pointer file is cloned.
For example, without git-lfs the gradle/wrapper/gradle-wrapper.jar local file contents are below, and ./gradlew build fails with an uninformative error.
# cat gradle/wrapper/gradle-wrapper.jar
version https://git-lfs.github.com/spec/v1
oid sha256:e996d452d2645e70c01c11143ca2d3742734a28da2bf61f25c82bdc288c9e637
size 59203
# ./gradlew build
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
I'm on Ubuntu and can install git-lfs with sudo apt install git-lfs. I can check that it's installed with which git-lfs. I'm not sure how to make that portable across platforms though.
The text was updated successfully, but these errors were encountered:
I wouldn't try downloading gradle-wrapper.jar because it may not be the only file affected by git-lfs.
Maybe you could check the file size of gradle-wrapper.jar to see if it's less than a few MB. If it's small, that means git-lfs isn't available. Then gradlew could exit with an error about git-lfs being required.
You must have git-lfs installed before cloning the repo in order to build from source. Otherwise only the pointer file is cloned.
For example, without git-lfs the gradle/wrapper/gradle-wrapper.jar local file contents are below, and
./gradlew build
fails with an uninformative error.I'm on Ubuntu and can install git-lfs with
sudo apt install git-lfs
. I can check that it's installed withwhich git-lfs
. I'm not sure how to make that portable across platforms though.The text was updated successfully, but these errors were encountered: