Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions 8 Scripts/getLatestVersion.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
.Description
Retrieves the latest version specified in the Gradle.Properties file
Uses the retrieved values to update the enviornment variable VERSION_STRING
#>

.Parameter propertiesPath

#>
Param(
[parameter(Mandatory = $true)]
[string]$propertiesPath
)

#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"
}
$file = get-item $propertiesPath
$findVersions = $file | Select-String -Pattern "mavenMajorVersion" -Context 0,2
$findVersions = $findVersions -split "`r`n"
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.