Skip to content

Fix validatePackageContents.ps1 failing on build-ci pipeline#2636

Open
ramsessanchez wants to merge 1 commit into
mainfrom
ramsessanchez/fix-validate-package-contents
Open

Fix validatePackageContents.ps1 failing on build-ci pipeline#2636
ramsessanchez wants to merge 1 commit into
mainfrom
ramsessanchez/fix-validate-package-contents

Conversation

@ramsessanchez

Copy link
Copy Markdown
Contributor

Problem

The Inspect contents of local Maven cache step in the build-ci pipeline fails because scripts/validatePackageContents.ps1 requires .module and .module.asc files.

Cause

After the gradle-to-maven migration (#2613), the build uses Maven (javadoc/source/gpg plugins), which does not produce Gradle Module Metadata (.module / .module.asc). The script still expected them, so Test-Path failed and the script exited 1.

Fix

Removed .module and .module.asc from the \ list. The remaining expected artifacts (jar, sources, javadoc, pom, and their .asc signatures) are still produced by the Maven build.

Maven build does not produce .module/.module.asc files after the
gradle-to-maven migration, so validatePackageContents.ps1 fails on
the build-ci pipeline. Remove those from the expected files list.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ramsessanchez ramsessanchez requested a review from a team as a code owner July 7, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant