Skip to content

Kotlin apps are a bit rough at main #1807

@sgammon

Description

@sgammon

Expected Behavior

  1. Initialize a Kotlin native container app with elide init
  2. Build a simple command line utility with it that does something
  3. It works really smoothly the first time

Actual Behaviour

  1. Initialize a Kotlin native container app with elide init
  2. Build a simple command line utility with it that does something
  3. There are some rough patches, for instance:
  • Serialization with JSON doesn't seem to work out of the box, and needs a dependency? But should be shipped by default?
  • When the Kotlin Compiler chooses to use reflection, kotlin-reflect.jar should be injected, but it doesn't seem to be by default. I had to add a dependency for it.
  • Compiling to a Native Image should basically "just work," but required some configuration for class init.

Stacktrace

No response

Steps To Reproduce

  1. elide init (on main)
  2. Choose containers
  3. Write a little CLI utility using JSON
  4. Try to build it

Environment Information

  • Operating System: Linux
  • Architecture: amd64

Runtime

Native

Language

JVM

Example Application

No response

Version

1.0.0-beta10

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinglang:kotlinRelated to Kotlin lang support

Type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions