[MacOS] Add SBT (#4101)

This commit is contained in:
Nikolay Frolov
2021-09-21 12:49:59 +03:00
committed by GitHub
parent 23a859a9bc
commit 63894956a1
6 changed files with 16 additions and 1 deletions

View File

@@ -512,6 +512,11 @@ function Get-KotlinVersion {
return "Kotlin $kotlinVersion" return "Kotlin $kotlinVersion"
} }
function Get-SbtVersion {
$sbtVersion = Run-Command "sbt -version" | Take-Part -Part 3
return "Sbt $sbtVersion"
}
function Build-PackageManagementEnvironmentTable { function Build-PackageManagementEnvironmentTable {
return @( return @(
@{ @{

View File

@@ -99,7 +99,8 @@ $markdown += New-MDHeader "Project Management" -Level 3
$markdown += New-MDList -Style Unordered -Lines (@( $markdown += New-MDList -Style Unordered -Lines (@(
(Get-MavenVersion), (Get-MavenVersion),
(Get-GradleVersion), (Get-GradleVersion),
(Get-ApacheAntVersion) (Get-ApacheAntVersion),
(Get-SbtVersion)
) | Sort-Object ) | Sort-Object
) )

View File

@@ -176,3 +176,9 @@ Describe "Kotlin" {
"$toolName -version" | Should -ReturnZeroExitCode "$toolName -version" | Should -ReturnZeroExitCode
} }
} }
Describe "sbt" {
It "sbt" {
"sbt -version" | Should -ReturnZeroExitCode
}
}

View File

@@ -261,6 +261,7 @@
"packer", "packer",
"parallel", "parallel",
"perl", "perl",
"sbt",
"subversion", "subversion",
"swiftformat", "swiftformat",
"swig", "swig",

View File

@@ -212,6 +212,7 @@
"packer", "packer",
"parallel", "parallel",
"perl", "perl",
"sbt",
"subversion", "subversion",
"swiftformat", "swiftformat",
"swig", "swig",

View File

@@ -158,6 +158,7 @@
"p7zip", "p7zip",
"packer", "packer",
"perl", "perl",
"sbt",
"subversion", "subversion",
"swiftformat", "swiftformat",
"swig", "swig",