Skip to content

Commit 13b8194

Browse files
authored
rename pom.xml file when copying over (#466)
1 parent b968b2e commit 13b8194

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

builds/azure-pipelines/build-release-java.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ steps:
1919
addProjectDirToScanningExclusionList: true
2020

2121
- powershell: |
22-
$prefix = 'azure-functions-java-library-sql-*'
2322
$source = 'java-library'
2423
$destination = '$(Build.ArtifactStagingDirectory)/java-library'
24+
$jar = Get-ChildItem $source/target/*.jar | Select-Object -First 1 | Select Name
25+
$jar -match '\d+\.\d+\.\d+'
26+
$version = $matches[0]
27+
$prefix = 'azure-functions-java-library-sql-'+$version
2528
New-Item $destination -ItemType Directory
26-
Copy-Item "$source/pom.xml" "$destination/"
29+
Copy-Item "$source/pom.xml" "$destination/$prefix.pom"
2730
Copy-Item "$source/target/$prefix.jar" "$destination/"
2831
Copy-Item "$source/target/$prefix-javadoc.jar" "$destination/"
2932
Copy-Item "$source/target/$prefix-sources.jar" "$destination/"

0 commit comments

Comments
 (0)