kubernetes-client icon indicating copy to clipboard operation
kubernetes-client copied to clipboard

[config] Don't publish test and example modules to Maven Central

Open manusa opened this issue 1 year ago • 4 comments

Description

From https://github.com/quarkusio/quarkus/issues/44810

Currently, some of the internal modules are being published to Maven Central.

Test, example, and parent modules should not be published to Maven Central.

The following snippet shows how this can be configured:

https://github.com/fabric8io/kubernetes-client/blob/3b3ee5c549d459136d1fa9893af2bebf708e1b7d/kubernetes-model-generator/openapi/maven-plugin/pom.xml#L40-L42

manusa avatar Nov 28 '24 16:11 manusa

Be careful, depending on how your publishing is configured, you sometimes need the last module to be deployed or nothing will be deployed. It's typically the case if you deploy at the end of the build.

What we recommend is to enable these modules only when you don't release.

For instance, with something like: https://github.com/quarkiverse/quarkus-github-app/blob/main/pom.xml#L180-L191

gsmet avatar Nov 29 '24 16:11 gsmet

Thanks @gsmet We'll definitely check what happens with the snapshot publishing before dealing with a final release once the issue is tackled.

manusa avatar Nov 29 '24 16:11 manusa

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

stale[bot] avatar Mar 01 '25 04:03 stale[bot]

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

stale[bot] avatar Jun 03 '25 12:06 stale[bot]

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

stale[bot] avatar Sep 11 '25 23:09 stale[bot]