mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
Add support to generate Kotlin file #282
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bmarty on GitHub (Feb 20, 2025).
Gradle scripts can now be written in Kotlin, and even if it's possible to generate
propertiesfile that gradle can read, it would be nice ifpklwas able to generate Kotlin files.Possible solution:
Create a
KotlinRendererclass, which will implementsValueRendererand addkotlinin the list of supporte format for theevalcommand.We would probably need an option to provide the package name, so that the generated file can be moved to to it's target directory and be compile out out the box.
I would be happy if command like:
generates a Kotlin file with the package
a.package.name.Thanks!
@HT154 commented on GitHub (Feb 20, 2025):
Similar to https://github.com/apple/pkl/discussions/972, such a renderer could be implemented in-language and published as a package.