Skip to content

fix: exclude samples from Maven Central publishing - #3537

Merged
csviri merged 2 commits into
mainfrom
release-fix-kotlin
Aug 5, 2026
Merged

fix: exclude samples from Maven Central publishing#3537
csviri merged 2 commits into
mainfrom
release-fix-kotlin

Conversation

@csviri

@csviri csviri commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

The Kotlin module has no Java sources, so maven-javadoc-plugin attaches no
javadoc jar to it and Central rejects the whole deployment with
"Javadocs must be provided but not found in entries", which is what
broke the 5.5.1 release. It only exists as a Kotlin interop E2E test,
so keep it out of the published bundle.

But exlcuding all the e2e tests since those does not make sense to publish.

Copilot AI lite review requested due to automatic review settings August 5, 2026 18:08
@openshift-ci
openshift-ci Bot requested review from metacosm and xstefank August 5, 2026 18:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The added skipPublishing property is not consumed by the current release/publishing configuration in this repo, so the module may still be included in the Central publishing bundle.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

This PR aims to prevent Maven Central publishing failures by excluding the Kotlin sample operator module from release publishing, since it doesn’t produce a Javadoc JAR and Central rejects the deployment.

Changes:

  • Adds a skipPublishing property to sample-operators/kotlin-operator intended to prevent publishing of that module.
File summaries
File Description
sample-operators/kotlin-operator/pom.xml Adds a property intended to skip publishing this module to avoid Central deployment rejection.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment thread sample-operators/kotlin-operator/pom.xml Outdated
The module has no Java sources, so maven-javadoc-plugin attaches no
javadoc jar to it and Central rejects the whole deployment with
"Javadocs must be provided but not found in entries", which is what
broke the 5.5.1 release. It only exists as a Kotlin interop E2E test,
so keep it out of the published bundle.
@csviri
csviri force-pushed the release-fix-kotlin branch from 47f1844 to c90a1e3 Compare August 5, 2026 18:18
Comment thread sample-operators/kotlin-operator/pom.xml Outdated
Replaces the skipPublishing property on the Kotlin sample with an
excludeArtifacts list on central-publishing-maven-plugin, so the
exclusion lives next to the publishing configuration, and extends it to
every sample module: they are demos and end-to-end tests, not artifacts
to depend on.
Copilot AI review requested due to automatic review settings August 5, 2026 18:27
@csviri csviri changed the title fix: exclude the Kotlin sample from Maven Central publishing fix: exclude samples from Maven Central publishing Aug 5, 2026
@csviri
csviri requested a review from metacosm August 5, 2026 18:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Ready to approve

The change is narrowly scoped to release publishing configuration and directly addresses the described Central deployment failure without impacting runtime code.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

@csviri
csviri merged commit 87248d7 into main Aug 5, 2026
52 of 53 checks passed
@csviri
csviri deleted the release-fix-kotlin branch August 5, 2026 20:26
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.

3 participants