I followed the steps in the document (Understanding dependency resolution), but I failed to build with --offline.
thu_wgchen_1@lon21:~/BIGDATA1/sth/fractal $ ./gradlew assemble --offline
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘fractal’.
Could not resolve all artifacts for configuration ‘:classpath’.
Could not resolve com.github.jengelman.gradle.plugins:shadow:2.0.4.
Required by:
project :No cached version of com.github.jengelman.gradle.plugins:shadow:2.0.4 available for offline mode.
No cached version of com.github.jengelman.gradle.plugins:shadow:2.0.4 available for offline mode.
No cached version of com.github.jengelman.gradle.plugins:shadow:2.0.4 available for offline mode.
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. - Get more help at https://help.gradle.org
BUILD FAILED in 5s
But I can find shadow.jar in ~/.gradle/caches/modules-2/files-2.1/com.github.jengelman.gradle.plugins/shadow/2.0.4/30c957bc8507c15a3b6e48a47c6a44bda676c9b5/
I don’t know why I failed.
The Gradle version is 6.4 .
The Linux version of the two machines are different.
Is there someone know the reason?