環(huán)境
- gradle: Gradle 6.6.1
wget https://downloads.gradle-dn.com/distributions/gradle-6.6.1-all.zip
- scala:
Scala code runner version 2.12.11 -- Copyright 2002-2020, LAMP/EPFL and Lightbend, Inc.
java version "1.8.0_241"
安裝流程
執(zhí)行
gradle
./gradlew jar
疑難問題
/usr/bin/env: bash: No such file or directory 解決辦法
-
解決:
原因在于文件格式保存錯(cuò)誤库倘,應(yīng)該存為unix格式
the problem's cause was that Git on Windows converted the line endings of gradlew from Unix style (LF) to Windows style (CRLF).
You can turn off that automatic conversion using git config core.autocrlf false.
Setting the line endings of gradlew back to Unix style fixed the problem.
In Vim this is done using :set fileformat=unix.
連接報(bào)錯(cuò):curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
-
解決:
修改hosts
sudo vim /etc/hosts
添加如下內(nèi)容:
199.232.28.133 raw.githubusercontent.com
參考: https://blog.csdn.net/txl910514/article/details/105880125