From fc4be35360c437e89e023ebcbedece8a702a214d Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Tue, 12 Sep 2023 23:33:07 +0200 Subject: [PATCH] Updates for final release - use codegen.kt within codegen.kt - Correctly set JVM targets - Stop publishing Gradle metadata - Add addAnnotation to Annotatable.Builder instead - No longer mark SubSpecDelegateProvider as @CodeGenInternal --- .idea/compiler.xml | 2 +- .idea/jarRepositories.xml | 5 ++ .idea/jsonSchemas.xml | 25 +++++++++ build.gradle.kts | 5 ++ buildSrc/src/main/kotlin/JVMTarget.kt | 35 ++++++++++++ .../main/kotlin/kord-publishing.gradle.kts | 9 +++- code-processor/build.gradle.kts | 2 +- .../builder_functions/BuilderVisitor.kt | 10 ++-- .../InlinedConstructorGenerator.kt | 33 +++++++----- .../src/main/kotlin/reification/Reifyer.kt | 12 +++-- .../src/main/kotlin/utils/ContractHelper.kt | 10 ++-- .../src/main/kotlin/utils/KSPUtils.kt | 11 ---- code-processor/src/main/kotlin/utils/Names.kt | 23 +++++--- .../src/main/kotlin/utils/ParameterHelpers.kt | 3 +- gradle/libs.versions.toml | 7 +++ .../kotlinpoet/AnnotationSpecBuilders.kt | 54 +++---------------- .../AnnotationSpecBuildersReified.kt | 9 +--- .../kotlin/builders/AnnotationSpecBuilders.kt | 10 +--- .../kotlin/delegate/SubSpecDelegate.kt | 4 +- ksp-processor/build.gradle.kts | 8 +++ .../kotlin/generator/AccessorFunctions.kt | 50 ++++++++--------- .../generator/DataClassRepresentation.kt | 35 ++++++------ .../main/kotlin/generator/FactoryFunction.kt | 24 +++++---- .../src/main/kotlin/generator/Generator.kt | 18 +++---- ksp/build.gradle.kts | 18 +++++++ ksp/src/main/kotlin/TypeResolvers.kt | 3 +- .../kotlin/annotations/ProcessorAnnotation.kt | 1 + 27 files changed, 248 insertions(+), 178 deletions(-) create mode 100644 .idea/jsonSchemas.xml create mode 100644 buildSrc/src/main/kotlin/JVMTarget.kt diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 312bf2e..61a9130 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml index e40fc1c..051dd42 100644 --- a/.idea/jarRepositories.xml +++ b/.idea/jarRepositories.xml @@ -21,5 +21,10 @@