Skip to content

Fix Maven publishing#4467

Merged
mnonnenmacher merged 3 commits intomainfrom
fix-publishing
Feb 10, 2026
Merged

Fix Maven publishing#4467
mnonnenmacher merged 3 commits intomainfrom
fix-publishing

Conversation

@mnonnenmacher
Copy link
Contributor

See the commit messages for details.

Enforce the Kotlin version only for application modules as only for
those it is important that the Kotlin version is aligned on the runtime
classpath. This is a fixup for 764f858.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@doubleopen.org>
Stop publishing Maven artifacts for application modules, as those
modules are not supposed to be used as libraries.

This fixes the following error when publishing Maven artifacts:

Invalid publication 'maven':
- Variant 'runtimeElements' contains a dependency on enforced platform
'org.jetbrains.kotlin:kotlin-bom'
In general publishing dependencies to enforced platforms is a mistake:
enforced platforms shouldn't be used for published components because
they behave like forced dependencies and leak to consumers.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@doubleopen.org>
Add a test job that publishes artifacts to the local Maven repository to
catch errors like the one fixed in the previous commit early.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@doubleopen.org>
@mnonnenmacher mnonnenmacher added this pull request to the merge queue Feb 10, 2026
*/

plugins {
// Apply precompiled plugins.
Copy link
Contributor

Choose a reason for hiding this comment

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

As a follow-up, should applying the application plugin be moved to here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, I will take a note to try this.

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 10, 2026
@mnonnenmacher mnonnenmacher added this pull request to the merge queue Feb 10, 2026
Merged via the queue into main with commit 95e6aba Feb 10, 2026
34 checks passed
@mnonnenmacher mnonnenmacher deleted the fix-publishing branch February 10, 2026 16:57
@oheger-bosch
Copy link
Contributor

@mnonnenmacher, many thanks for the fast fix!

I assume, there is no way to publish the artifacts for the failed 0.52.0 release, and we would instead create another release, right?

@mnonnenmacher
Copy link
Contributor Author

@mnonnenmacher, many thanks for the fast fix!

I assume, there is no way to publish the artifacts for the failed 0.52.0 release, and we would instead create another release, right?

Please just delete the 0.52.0 tag and create it again. The Docker images will be overwritten and because nothing was released to Maven Central yet this also won't be a problem.

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