From c9bba37f91f5567c7d0c646d5900c8fdad15986f Mon Sep 17 00:00:00 2001 From: Sayan Shaw <52221015+sayanshaw24@users.noreply.github.com> Date: Mon, 3 Jun 2024 14:43:31 -0700 Subject: [PATCH] update java packaging pipeline to have .pom and .jar files in correct location (#735) Co-authored-by: Sayan Shaw --- .pipelines/java_packaging.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.pipelines/java_packaging.yml b/.pipelines/java_packaging.yml index 23e7e692..f0aaa0db 100644 --- a/.pipelines/java_packaging.yml +++ b/.pipelines/java_packaging.yml @@ -160,10 +160,19 @@ stages: jar cmf0 META-INF/MANIFEST.MF onnxruntime-extensions-$(OrtExtVersion).jar * displayName: Combine and pack JAR with Windows, Linux and MacOS Binaries + - script: | + cd $(Build.ArtifactStagingDirectory) + mkdir drop + cp onnxruntime-extensions-$(OrtExtVersion).jar drop/onnxruntime-extensions-$(OrtExtVersion).jar + cp onnxruntime-extensions-$(OrtExtVersion)-javadoc.jar drop/onnxruntime-extensions-$(OrtExtVersion)-javadoc.jar + cp onnxruntime-extensions-$(OrtExtVersion)-sources.jar drop/onnxruntime-extensions-$(OrtExtVersion)-sources.jar + cp META-INF/maven/com.microsoft.onnxruntime/onnxruntime-extensions/pom.xml drop/onnxruntime-extensions-$(OrtExtVersion).pom + displayName: Move files to a drop folder for publishing + - task: PublishPipelineArtifact@1 displayName: 'Publish MacOS Artifact' inputs: - targetPath: '$(Build.ArtifactStagingDirectory)' + targetPath: '$(Build.ArtifactStagingDirectory)/drop' artifact: 'drop-onnxruntime-extensions-java-cpu' - template: templates/component-governance-component-detection-steps.yml