mirror of https://github.com/sbt/sbt.git
Merge pull request #5757 from eatkins/thin-client-scala
Build thin client with scala 2.12.11
This commit is contained in:
commit
d3ffd33e17
|
|
@ -1100,6 +1100,7 @@ lazy val sbtClientProj = (project in file("client"))
|
||||||
.dependsOn(commandProj)
|
.dependsOn(commandProj)
|
||||||
.settings(
|
.settings(
|
||||||
commonBaseSettings,
|
commonBaseSettings,
|
||||||
|
scalaVersion := "2.12.11", // The thin client does not build with 2.12.12
|
||||||
publish / skip := true,
|
publish / skip := true,
|
||||||
name := "sbt-client",
|
name := "sbt-client",
|
||||||
mimaPreviousArtifacts := Set.empty,
|
mimaPreviousArtifacts := Set.empty,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#compdef sbtn
|
#compdef sbtn
|
||||||
|
|
||||||
COMPLETE="--completions=${words[@]}"
|
COMPLETE="--completions=${words[@]}"
|
||||||
COMPLETIONS=($(sbtc --no-tab ${COMPLETE}))
|
COMPLETIONS=($(sbtn --no-tab ${COMPLETE}))
|
||||||
_alternative 'arguments:custom arg:($COMPLETIONS)'
|
_alternative 'arguments:custom arg:($COMPLETIONS)'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
_do_sbtn_completions() {
|
_do_sbtn_completions() {
|
||||||
COMPREPLY=($(sbtc "--completions=${COMP_LINE}"))
|
COMPREPLY=($(sbtn "--completions=${COMP_LINE}"))
|
||||||
}
|
}
|
||||||
|
|
||||||
complete -F _do_sbtn_completions sbtn
|
complete -F _do_sbtn_completions sbtn
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
function __sbtcomp
|
function __sbtcomp
|
||||||
sbtc --completions="$argv"
|
sbtn --completions="$argv"
|
||||||
end
|
end
|
||||||
complete --command sbtn -f --arguments '(__sbtcomp (commandline -cp))'
|
complete --command sbtn -f --arguments '(__sbtcomp (commandline -cp))'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue