Skip to content

Commit

Permalink
add CN repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmcgrady committed Jul 26, 2023
1 parent 26edf32 commit bc9a89e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/sbt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
SELF=$(cd $(dirname $0) && pwd)
. "$SELF/util.sh"

SBT_REPOSITORIES_CONFIG="$(dirname "$(realpath "$0")")/sbt-config/repositories"
echo "The CN repositories are to be enabled by default for the purpose of downloading bootstrap/plugin/dependencies jars."
SBT_REPOSITORIES_CONFIG="$(dirname "$(realpath "$0")")/sbt-config/repositories-cn"
export SBT_OPTS="${SBT_OPTS:="-Dsbt.override.build.repos=true -Dsbt.repository.config=$SBT_REPOSITORIES_CONFIG"}"

. "$(dirname "$(realpath "$0")")"/sbt-launch-lib.bash
Expand Down
7 changes: 7 additions & 0 deletions build/sbt-config/repositories-cn
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[repositories]
local
local-preloaded-ivy: file:///${sbt.preloaded-${sbt.global.base-${user.home}/.sbt}/preloaded/}, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext]
local-preloaded: file:///${sbt.preloaded-${sbt.global.base-${user.home}/.sbt}/preloaded/}
aliyun-maven: https://maven.aliyun.com/nexus/content/groups/public/
huawei-central: https://mirrors.huaweicloud.com/repository/maven/
maven-central

0 comments on commit bc9a89e

Please sign in to comment.