-
Notifications
You must be signed in to change notification settings - Fork 356
Document that -parameters javac flag is mandatory with native #1412
Comments
Yeah with the JVM, it likely fallback on reading the At Kotlin level, maybe the multiplatform Gradle plugin should be configured in a way that allow Spring Boot plugin to detect and configure this option as it does with the JVM one. If not possible, maybe Spring Boot Gradle plugin could configure the Kotlin multiplatform Gradle plugin to configure @jamesward For the time behind, I can maybe add related documentation. Could you share how you configured it manually? |
Thank you. Here is my config: |
@wilkinsona Based on James feedback, it seems Spring Boot Gradle plugin configure |
The |
That could happen for Java multi-module projects as well, that's now properly documented. |
@wilkinsona I had the plugin in there and it wasn't working so I pulled it out. Let me know if you want a branch with that back in. |
Given that the |
Usually the
id("org.springframework.boot")
Gradle plugin adds:But it doesn't in a Kotlin Multiplatform project (I think because the task is named differently than it expects).
Using a Kotlin data class in a Spring Data repo works fine on the JVM without this setting. But running via Spring Native, when trying to map the DB data, an exception is produced like:
I'm not sure if Spring Native can do anything to make this better / easier to troubleshoot but figure this might help others.
The text was updated successfully, but these errors were encountered: