[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:
committed by
Space
parent
faf0cbea5d
commit
e91785ba39
@@ -7,7 +7,7 @@ and ensure that the public binary API wasn't changed in a way that make this cha
|
||||
|
||||
Compile and run tests. `CasesPublicAPITest` verifies the tool itself,
|
||||
and `RuntimePublicAPITest` dumps the public API of `kotlin-stdlib`,
|
||||
`kotlin-stdlib-jdk7/8`, and `kotlin-reflect` jars,
|
||||
`kotlin-stdlib-jdk7/8`, `kotlin-reflect` and `kotlin-gradle-plugin-idea` jars,
|
||||
which must be built beforehand with gradle. Use `clean assemble` tasks,
|
||||
since the incremental compilation currently doesn't produce all the required output.
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ dependencies {
|
||||
testArtifacts project(':kotlin-stdlib-jdk7')
|
||||
testArtifacts project(':kotlin-stdlib-jdk8')
|
||||
testArtifacts project(':kotlin-reflect')
|
||||
testArtifacts project(':kotlin-gradle-plugin-idea')
|
||||
}
|
||||
|
||||
pill {
|
||||
|
||||
+4
@@ -33,6 +33,10 @@ class RuntimePublicAPITest {
|
||||
snapshotAPIAndCompare("../../reflect/api/build/libs", "kotlin-reflect-api(?!-[-a-z]+)", nonPublicPackages = listOf("kotlin.reflect.jvm.internal"))
|
||||
}
|
||||
|
||||
@Test fun kotlinGradlePluginIdea() {
|
||||
snapshotAPIAndCompare("../kotlin-gradle-plugin-idea/build/libs", "kotlin-gradle-plugin-idea(?!-[-a-z]+)")
|
||||
}
|
||||
|
||||
private fun snapshotAPIAndCompare(
|
||||
basePath: String,
|
||||
jarPattern: String,
|
||||
|
||||
Reference in New Issue
Block a user