generated from Graqr/Java-Template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: bump version to 0.0.8-SNAPSHOT * add deployment configuration and plugins * build: bump version to 0.0.8-SNAPSHOT * add deployment configuration and plugins * revert: remove maven central deployment plugins Signed-off-by: jonathan zollinger <jonathan.zollinger@outlook.com> * refactor: fix pom styling Signed-off-by: jonathan zollinger <jonathan.zollinger@outlook.com> * refactor(test): simplify data feed Signed-off-by: jonathan zollinger <jonathan.zollinger@outlook.com> * refactor(test): change input variable change env variables for test seed data Signed-off-by: jonathan zollinger <jonathan.zollinger@outlook.com> * fix(client): include all params include unnecessary params, set to default values if null. Signed-off-by: jonathan zollinger <jonathan.zollinger@outlook.com> * refactor: edit whitespace Signed-off-by: jonathan zollinger <jonathan.zollinger@outlook.com> * feature: query store information by ID introduce support for sql test data source fix store-location-root object child type move test from threshrSpec to ... Controller spec Signed-off-by: jonathan zollinger <jonathan.zollinger@outlook.com> * fix(test): workaround junit-intellij bug including "string(s)" in the test title make intellij think this test should be run with junit. Signed-off-by: jonathan zollinger <jonathan.zollinger@outlook.com> * fix(ci): set env vars from gh secrets Signed-off-by: jonathan zollinger <jonathan.zollinger@outlook.com> * feature(build): add version incrementer Signed-off-by: jonathan zollinger <jonathan.zollinger@outlook.com> * chore: bump version to 0.0.8 Signed-off-by: jonathan zollinger <jonathan.zollinger@outlook.com> --------- Signed-off-by: jonathan zollinger <jonathan.zollinger@outlook.com>
- Loading branch information
1 parent
d64b596
commit eef7470
Showing
14 changed files
with
278 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
|
||
# verify tools are available | ||
<# | ||
.SYNOPSIS | ||
adds latest tag to pom and readme in either current or provided directory. replaces the previous tag. | ||
#> | ||
|
||
$ErrorActionPreference = 'SilentlyContinue' | ||
if (!$(git --version)){ | ||
$ErrorActionPreference = 'Continue' | ||
Write-Error "git is not installed " | ||
} | ||
$ErrorActionPreference = 'Stop' | ||
if ($null -ne $args[0] | Out-Null) { | ||
Test-Path $args[0] -PathType Container | Out-Null | ||
$path = $args[0] | ||
}else { | ||
$path = Get-Location | ||
} | ||
@("$($path)/pom.xml", "$($path)/README.md") | ForEach-Object {Test-Path -Path $_ -PathType Leaf} | Out-Null | ||
Function checkforTagNull(){ | ||
<# | ||
.SYNOPSIS | ||
checks if a tag at a given index is null | ||
.OUTPUTS | ||
Stops script if null and prints error message. | ||
Returns tag at given iteration. | ||
.EXAMPLE | ||
# When a repo has a plethora of tags and you want to get the latest tag. | ||
$> checkForTagNull(-1) | ||
2.8.45 | ||
.EXAMPLE | ||
# When a repo doesn't have more than one tag and you query the second to last tag. | ||
$> checkForTagNull(-2) | ||
tag iteration -2 does not exist | ||
#> | ||
[CmdletBinding()] | ||
param ( | ||
[Parameter(Mandatory=$true)] | ||
[int] | ||
$index | ||
) | ||
$tag = $(git tag --sort=taggerdate)[$index] | ||
if($null -eq $tag | Out-Null){ | ||
Write-Error "tag iteration $($index) does not exist" | ||
} | ||
return $tag | ||
} | ||
|
||
$tags = @(-2, -1) | ForEach-Object {checkforTagNull $_} | ForEach-Object {$_.Replace("v","")} | ||
|
||
@("$($path)/pom.xml", "$($path)/README.md") | ForEach-Object { | ||
$(Get-Content $_).Replace($tags[0], $tags[1]).Replace("-SNAPSHOT", "") | Set-Content $_ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/main/java/com/graqr/threshr/model/redsky/store/location/StoreLocationRoot.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.