diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 b/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 index d7e864bb..6f087bdb 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 @@ -149,6 +149,11 @@ function Get-GradleVersion { return "Gradle $gradleVersion" } +function Get-SbtVersion { + $sbtVersion = (sbt -version) -match "sbt script version:" -replace "script version: " + return "$sbtVersion" +} + function Get-DotnetSdks { $sdksRawList = dotnet --list-sdks $sdkVersions = ($sdksRawList | Foreach-Object {$_.Split()[0]}) -join ' ' diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index ec47b99b..644080be 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -56,7 +56,8 @@ $markdown += New-MDHeader "Project Management" -Level 3 $markdown += New-MDList -Style Unordered -Lines @( (Get-AntVersion), (Get-MavenVersion), - (Get-GradleVersion) + (Get-GradleVersion), + (Get-SbtVersion) ) $markdown += New-MDHeader "Tools" -Level 3