Skip to content

Support the JVM target of the Kotlin multiplatform Gradle plugin #976

Description

@sschuberth

The native-image plugin for Gradle works fine with Kotlin/JVM projects, i.e. Kotlin projects that only target the JVM. However, when using Kotlin multiplatform and also targeting the JVM, the native-image plugin does not seem to apply.

Kotlin can only target native platforms by itself if all (transitive) dependencies are also available for the target platform. As the Kotlin multiplatform (KMP) ecosystem is still growing, it's often the case that for a specific problem only a Java library exists.

Also to compare GraalVM native images to native binaries created by Kotlin directly, it would be great if the native-image plugin would also recognize the Kotlin multiplatform plugin in Gradle project, and "hook into" the JVM target to provide the nativeCompile etc. tasks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions