Skip to content

Support Kotlin/Multiplatform Gradle plugin natively #44527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tapchicoma opened this issue Mar 4, 2025 · 1 comment
Open

Support Kotlin/Multiplatform Gradle plugin natively #44527

Tapchicoma opened this issue Mar 4, 2025 · 1 comment
Labels
type: enhancement A general enhancement
Milestone

Comments

@Tapchicoma
Copy link

It would be nice if Spring-boot Gradle plugin could support natively Kotlin/Multiplatform ("org.jetbrains.kotlin.multiplatform") Gradle plugin:

  • Kotlin 2.1.20 is prohibiting Gradle java, java-library and application plugins in combination with Kotlin multiplatform plugin if a project is using Gradle 8.7+. With previous Gradle versions such combination produces a warning. (issue)
  • For application plugin replacement new experimental API similar to the Gradle one was added (issue)
  • Kotlin multiplatform plugin for a several releases already by default always applies java-base Gradle plugin
    Spring boot plugin currently expects that Gradle java plugin is present in the project to do the main configuration

The possible ways to solve it - either to react on java-base plugin or create a special plugin action for "org.jetbrains.kotlin.multiplatform" plugin.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 4, 2025
@wilkinsona
Copy link
Member

either to react on java-base plugin

As I understand it, the base plugin only sets up conventions, it doesn't actually create anything itself. Spring Boot's plugin relies on several things that are created by the java plugin such as the main source set and various configurations so I don't think reacting to the java-base plugin would meet our needs.

create a special plugin action for "org.jetbrains.kotlin.multiplatform" plugin

I think this is what we'll have to do. There may be some common logic that we can extract from our existing JavaPluginAction but I think the entry point will have to be reacting to org.jetbrains.kotlin.multiplatform.

@wilkinsona wilkinsona added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 4, 2025
@wilkinsona wilkinsona added this to the 4.x milestone Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants