[KPM] Implement initial IdeaKotlinProjectModelBuilder

- Introduce `kotlin-gradle-plugin-idea` module that allows
to share models between the IDE and KGP

- Add `kotlin-gradle-plugin-idea` to the RuntimePublicAPITest to
ensure binary compatibility

^KT-51262
This commit is contained in:
sebastian.sellmair
2022-02-11 15:54:26 +01:00
committed by Space
parent faf0cbea5d
commit e91785ba39
29 changed files with 353 additions and 7 deletions
@@ -30,6 +30,7 @@ kotlin.sourceSets.all {
languageSettings.optIn("kotlin.RequiresOptIn")
languageSettings.optIn("org.jetbrains.kotlin.gradle.plugin.mpp.external.ExternalVariantApi")
languageSettings.optIn("org.jetbrains.kotlin.gradle.plugin.mpp.external.AdvancedExternalVariantApi")
languageSettings.optIn("org.jetbrains.kotlin.gradle.kpm.idea.KotlinGradlePluginApi")
}
dependencies {
@@ -56,6 +57,7 @@ dependencies {
embedded(project(":kotlin-gradle-statistics"))
compileOnly(project(":kotlin-gradle-build-metrics"))
embedded(project(":kotlin-gradle-build-metrics"))
implementation(project(":kotlin-gradle-plugin-idea"))
implementation(commonDependency("com.google.code.gson:gson"))
implementation(commonDependency("com.google.guava:guava"))