mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
[PR #194] [MERGED] Add codegen setting governing Kotlin package #444
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?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/194
Author: @sgammon
Created: 2/18/2024
Status: ✅ Merged
Merged: 2/23/2024
Merged by: @stackoverflow
Base:
main← Head:feat/issue-187📝 Commits (1)
b28452cAdd setting for Kotlin package to codegen📊 Changes
7 files changed (+145 additions, -8 deletions)
View changed files
📝
pkl-codegen-kotlin/src/main/kotlin/org/pkl/codegen/kotlin/CliKotlinCodeGeneratorOptions.kt(+10 -1)📝
pkl-codegen-kotlin/src/main/kotlin/org/pkl/codegen/kotlin/KotlinCodeGenerator.kt(+16 -3)📝
pkl-codegen-kotlin/src/test/kotlin/org/pkl/codegen/kotlin/KotlinCodeGeneratorTest.kt(+90 -2)📝
pkl-gradle/src/main/java/org/pkl/gradle/PklPlugin.java(+3 -0)📝
pkl-gradle/src/main/java/org/pkl/gradle/spec/KotlinCodeGenSpec.java(+4 -0)📝
pkl-gradle/src/main/java/org/pkl/gradle/task/KotlinCodeGenTask.java(+4 -0)📝
pkl-gradle/src/test/kotlin/org/pkl/gradle/KotlinCodeGeneratorsTest.kt(+18 -2)📄 Description
Summary
Adds a setting to the Kotlin code generator which acts as a prefix for the target Kotlin package during codegen.
This has been filed on top of #192 to avoid conflicts.
Changelog
kotlinPackageproperty in gradle pluginkotlinPackageas prefix for kotlin codegenkotlinx.htmlandkotlinx.serialization🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.