mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-18 15:56:47 +00:00
[Windows] pin maven version (#7236)
This commit is contained in:
@@ -133,7 +133,11 @@ if (-not (Test-IsWin22)) {
|
||||
# Install Java tools
|
||||
# Force chocolatey to ignore dependencies on Ant and Maven or else they will download the Oracle JDK
|
||||
Choco-Install -PackageName ant -ArgumentList "-i"
|
||||
Choco-Install -PackageName maven -ArgumentList "-i"
|
||||
# Maven 3.9.x has multiple compatibilities problems
|
||||
$toolsetMavenVersion = (Get-ToolsetContent).maven.version
|
||||
$versionToInstall = Get-LatestChocoPackageVersion -TargetVersion $toolsetMavenVersion -PackageName "maven"
|
||||
|
||||
Choco-Install -PackageName maven -ArgumentList "--version=$versionToInstall"
|
||||
Choco-Install -PackageName gradle
|
||||
|
||||
# Add maven env variables to Machine
|
||||
|
||||
@@ -479,6 +479,9 @@
|
||||
"node": {
|
||||
"default": "18"
|
||||
},
|
||||
"maven": {
|
||||
"version": "3.8"
|
||||
},
|
||||
"mysql": {
|
||||
"version": "5.7"
|
||||
},
|
||||
|
||||
@@ -390,6 +390,9 @@
|
||||
"node": {
|
||||
"default": "18"
|
||||
},
|
||||
"maven": {
|
||||
"version": "3.8"
|
||||
},
|
||||
"mysql": {
|
||||
"version": "8.0"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user