File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,9 +90,9 @@ extends:
9090
9191 - pwsh : |
9292 $contents = Get-Content gradle.properties -Raw
93- $major = $contents | Select-String -Pattern 'mavenMajorVersion = ([0-9]+)' | ForEach-Object { $_.Matches.Groups[1].Value }
94- $minor = $contents | Select-String -Pattern 'mavenMinorVersion = ([0-9]+)' | ForEach-Object { $_.Matches.Groups[1].Value }
95- $patch = $contents | Select-String -Pattern 'mavenPatchVersion = ([0-9]+)' | ForEach-Object { $_.Matches.Groups[1].Value }
93+ $major = $contents | Select-String -Pattern 'mavenMajorVersion\s*=\s* ([0-9]+)' | ForEach-Object { $_.Matches.Groups[1].Value }
94+ $minor = $contents | Select-String -Pattern 'mavenMinorVersion\s*=\s* ([0-9]+)' | ForEach-Object { $_.Matches.Groups[1].Value }
95+ $patch = $contents | Select-String -Pattern 'mavenPatchVersion\s*=\s* ([0-9]+)' | ForEach-Object { $_.Matches.Groups[1].Value }
9696 # $snapshot_suffix = if ($Env:BRANCH_NAME.StartsWith('refs/tags/v')) { '' } else { '-SNAPSHOT' }
9797 $version = "$major.$minor.$patch$snapshot_suffix"
9898 echo "Current version is $version"
You can’t perform that action at this time.
0 commit comments