We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 832d55b + 883c420 commit c8298b5Copy full SHA for c8298b5
Scripts/getLatestVersion.ps1
@@ -7,16 +7,16 @@
7
.Description
8
Retrieves the latest version specified in the Gradle.Properties file
9
Uses the retrieved values to update the enviornment variable VERSION_STRING
10
-#>
11
-
12
.Parameter propertiesPath
13
+#>
14
Param(
15
- [parameter(Mandatory = $true)]
16
[string]$propertiesPath
17
)
18
19
#Retrieve the current version from the Gradle.Properties file given the specified path
+if($propertiesPath -eq "" -or $null -eq $propertiesPath) {
+ $propertiesPath = Join-Path -Path $PSScriptRoot -ChildPath "../gradle.properties"
+}
20
$file = get-item $propertiesPath
21
$findVersions = $file | Select-String -Pattern "mavenMajorVersion" -Context 0,2
22
$findVersions = $findVersions -split "`r`n"
0 commit comments