File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ disabledScalacOption="$7"
1717extraLibraryDeps=" $8 "
1818
1919scriptDir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd) "
20+ source " $scriptDir /../versions.sh"
2021
2122if [[ -z " $projectConfig " ]]; then
2223 projectConfig=" {}"
@@ -49,7 +50,11 @@ sbtSettings=(
4950 ${memorySettings[@]}
5051 $( echo $projectConfig | jq -r ' .sbt.options? // [] | join(" ")' | sed " s/<SCALA_VERSION>/${scalaVersion} /g" )
5152)
52- customCommands=$( echo " $projectConfig " | jq -r ' .sbt?.commands // [] | join ("; ")' | sed " s/<SCALA_VERSION>/${scalaVersion} /g" )
53+ customCommandsFilter=' .sbt?.commands // []'
54+ if ! isBinVersionGreaterOrEqual " $scalaVersion " " 3.8" ; then
55+ customCommandsFilter=' (.sbt?.commands // []) | map(select(test("libraryDependencies|scala3-repl") | not))'
56+ fi
57+ customCommands=$( echo " $projectConfig " | jq -r " $customCommandsFilter | join(\" ; \" )" | sed " s/<SCALA_VERSION>/${scalaVersion} /g" )
5358targetsString=" ${targets[@]} "
5459logFile=build.log
5560statusFile=../build-status.txt
You can’t perform that action at this time.
0 commit comments