Change sam-with-receiver plugin to use published compiler plugin

- also publish 'kotlin-sam-with-receiver-compiler-plugin-embeddable' to
  be used with 'kotlin-compiler-embeddable'
- 'kotlin-maven-sam-with-receiver' now just adds
  'kotlin-sam-with-receiver-compiler-plugin' as normal dependency
  instead of embedding it into itself

^KT-52811 In Progress
This commit is contained in:
Yahor Berdnikau
2023-03-20 18:02:43 +01:00
committed by Space Team
parent a58266050f
commit 78c94b65b9
6 changed files with 32 additions and 23 deletions
@@ -34,7 +34,7 @@ class SamWithReceiverGradleSubplugin
}
companion object {
const val SAM_WITH_RECEIVER_ARTIFACT_NAME = "kotlin-sam-with-receiver"
const val SAM_WITH_RECEIVER_ARTIFACT_NAME = "kotlin-sam-with-receiver-compiler-plugin-embeddable"
private const val ANNOTATION_ARG_NAME = "annotation"
private const val PRESET_ARG_NAME = "preset"