Skip to content

Commit 79dfeeb

Browse files
authored
[Windows] Add sbt to Windows 2022 image (#4526)
* [Windows] Add sbt to Windows 2022 image * Update SoftwareReport.Generator.ps1 to include sbt on Win22
1 parent 0365a15 commit 79dfeeb

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,10 @@ $markdown += New-MDHeader "Project Management" -Level 3
7474
$projectManagementTools = @(
7575
(Get-AntVersion),
7676
(Get-GradleVersion),
77-
(Get-MavenVersion)
77+
(Get-MavenVersion),
78+
(Get-SbtVersion)
7879
)
79-
if ((Test-IsWin16) -or (Test-IsWin19)) {
80-
$projectManagementTools += @(
81-
(Get-SbtVersion)
82-
)
83-
}
80+
8481
$markdown += New-MDList -Style Unordered -Lines ($projectManagementTools | Sort-Object)
8582

8683
$markdown += New-MDHeader "Tools" -Level 3

images/win/scripts/Tests/Tools.Tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Describe "PowerShell Core" {
124124
}
125125
}
126126

127-
Describe "Sbt" -Skip:(Test-IsWin22) {
127+
Describe "Sbt" {
128128
It "sbt" {
129129
"sbt --version" | Should -ReturnZeroExitCode
130130
}
@@ -199,7 +199,7 @@ Describe "Pipx" {
199199
Describe "Kotlin" {
200200
$kotlinPackages = @("kapt", "kotlin", "kotlinc", "kotlin-dce-js", "kotlinc-js", "kotlinc-jvm")
201201

202-
It "<toolName> is available" -TestCases ($kotlinPackages | ForEach-Object { @{ toolName = $_ } }) {
202+
It "<toolName> is available" -TestCases ($kotlinPackages | ForEach-Object { @{ toolName = $_ } }) {
203203
"$toolName -version" | Should -ReturnZeroExitCode
204204
}
205-
}
205+
}

images/win/windows2022.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@
203203
"{{ template_dir }}/scripts/Installers/Install-GitHub-CLI.ps1",
204204
"{{ template_dir }}/scripts/Installers/Install-PHP.ps1",
205205
"{{ template_dir }}/scripts/Installers/Install-Rust.ps1",
206+
"{{ template_dir }}/scripts/Installers/Install-Sbt.ps1",
206207
"{{ template_dir }}/scripts/Installers/Install-Chrome.ps1",
207208
"{{ template_dir }}/scripts/Installers/Install-Edge.ps1",
208209
"{{ template_dir }}/scripts/Installers/Install-Firefox.ps1",

0 commit comments

Comments
 (0)