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
feat(gradle): kotlinPackage property in gradle plugin
feat(codegen): use kotlinPackage as prefix for kotlin codegen
fix: pin version of kotlinx.html and kotlinx.serialization
test(codegen): add tests for custom kotlin package
test(gradle): add tests for generating with custom kotlin package
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/apple/pkl/pull/194
**Author:** [@sgammon](https://github.com/sgammon)
**Created:** 2/18/2024
**Status:** ✅ Merged
**Merged:** 2/23/2024
**Merged by:** [@stackoverflow](https://github.com/stackoverflow)
**Base:** `main` ← **Head:** `feat/issue-187`
---
### 📝 Commits (1)
- [`b28452c`](https://github.com/apple/pkl/commit/b28452c8f9b05e3966aad4c2cebe17a53c6cc9db) Add setting for Kotlin package to codegen
### 📊 Changes
**7 files changed** (+145 additions, -8 deletions)
<details>
<summary>View changed files</summary>
📝 `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)
</details>
### 📄 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
- feat(gradle): `kotlinPackage` property in gradle plugin
- feat(codegen): use `kotlinPackage` as prefix for kotlin codegen
- fix: pin version of `kotlinx.html` and `kotlinx.serialization`
- test(codegen): add tests for custom kotlin package
- test(gradle): add tests for generating with custom kotlin package
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.