Skip to content

Switch to codegen.kt#965

Open
DRSchlaubi wants to merge 6 commits intomainfrom
feature/codegen-kt
Open

Switch to codegen.kt#965
DRSchlaubi wants to merge 6 commits intomainfrom
feature/codegen-kt

Conversation

@DRSchlaubi
Copy link
Copy Markdown
Member

No description provided.

@DRSchlaubi
Copy link
Copy Markdown
Member Author

I think codegen kt doesn't run on jdk 8

Comment thread buildSrc/src/main/kotlin/Projects.kt
@@ -1,16 +1,24 @@
@file:OptIn(ExperimentalContracts::class, DelicateKotlinPoetApi::class)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't like the opt-ins here, why not keep the old approach of using strings?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because this one is actually type-safe and I like it

Comment thread ksp-processors/src/main/kotlin/KSPUtils.kt
Comment thread ksp-processors/src/main/kotlin/KotlinPoetDsl.kt Outdated
@lukellmann
Copy link
Copy Markdown
Member

I think codegen kt doesn't run on jdk 8

the build failure looks more like a dependency resolution issue

@DRSchlaubi
Copy link
Copy Markdown
Member Author

Yeah because codegen.kt defines a jdk dependency in the Gradle meta

@DRSchlaubi
Copy link
Copy Markdown
Member Author

Since the CI now uses Java 21, this should work again

# Conflicts:
#	gradle/libs.versions.toml
#	ksp-processors/build.gradle.kts
#	ksp-processors/src/main/kotlin/KSPUtils.kt
#	ksp-processors/src/main/kotlin/generation/GenerationProcessor.kt
#	ksp-processors/src/main/kotlin/generation/bitflags/Builder.kt
#	ksp-processors/src/main/kotlin/generation/bitflags/ContainsPlusMinusCopy.kt
#	ksp-processors/src/main/kotlin/generation/bitflags/Serializer.kt
#	ksp-processors/src/main/kotlin/generation/kordenum/KordEnumGeneration.kt
#	ksp-processors/src/main/kotlin/generation/shared/EqualsHashCodeToString.kt
#	ksp-processors/src/main/kotlin/generation/shared/SharedContent.kt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants