Skip to content

Fix maven publishing#11792

Merged
Anuken merged 2 commits intoAnuken:masterfrom
phinner:master
Mar 25, 2026
Merged

Fix maven publishing#11792
Anuken merged 2 commits intoAnuken:masterfrom
phinner:master

Conversation

@phinner
Copy link
Copy Markdown
Contributor

@phinner phinner commented Mar 24, 2026

Switching to Gradle 9 broke maven publishing due to the use of an incompatible version of the Kotlin plugin.
The outdated version tries to use a removed method on project dependencies.
See the following when trying to run ":core:publishToMavenLocal --stacktrace":

Caused by: java.lang.NoSuchMethodError: 'org.gradle.api.Project org.gradle.api.artifacts.ProjectDependency.getDependencyProject()'
	at org.jetbrains.kotlin.gradle.plugin.mpp.publishing.DeprecatedPomDependenciesRewriter.associateDependenciesWithActualModuleDependencies(DeprecatedPomDependenciesRewriter.kt:88)
	at org.jetbrains.kotlin.gradle.plugin.mpp.publishing.DeprecatedPomDependenciesRewriter.access$associateDependenciesWithActualModuleDependencies(DeprecatedPomDependenciesRewriter.kt:26)
	at org.jetbrains.kotlin.gradle.plugin.mpp.publishing.DeprecatedPomDependenciesRewriter$dependenciesMappingForEachUsageContext$2.call(DeprecatedPomDependenciesRewriter.kt:45)
	at org.jetbrains.kotlin.gradle.plugin.mpp.publishing.DeprecatedPomDependenciesRewriter$dependenciesMappingForEachUsageContext$2.call(DeprecatedPomDependenciesRewriter.kt:40)
	at org.gradle.api.internal.provider.DefaultProvider.calculateOwnValue(DefaultProvider.java:73)
        (And some more...)

This PR fixes this by updating said plugin to the latest version.

https://kotlinlang.org/docs/multiplatform/multiplatform-compatibility-guide.html#version-compatibility

image

If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:

  • I have read the contribution guidelines.
  • I have ensured that my code compiles, if applicable.
  • I have ensured that any new features in this PR function correctly in-game, if applicable.

@Anuken Anuken merged commit 6daa82a into Anuken:master Mar 25, 2026
1 of 2 checks passed
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.

2 participants