From 0fa92315ff01456fb96f5955252f803eba53839e Mon Sep 17 00:00:00 2001 From: Sebastian Sellmair Date: Fri, 11 Nov 2022 09:17:42 +0100 Subject: [PATCH] [Gradle] kgp-idea: Update testedVersion to 1.8.20-dev-2192 for compatibility tests KT-54825 --- .../build.gradle.kts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libraries/tools/kotlin-gradle-plugin-idea-for-compatibility-tests/build.gradle.kts b/libraries/tools/kotlin-gradle-plugin-idea-for-compatibility-tests/build.gradle.kts index f9113295229..d08c5a4f742 100644 --- a/libraries/tools/kotlin-gradle-plugin-idea-for-compatibility-tests/build.gradle.kts +++ b/libraries/tools/kotlin-gradle-plugin-idea-for-compatibility-tests/build.gradle.kts @@ -4,7 +4,7 @@ * Version of kotlin-gradle-plugin-idea module that should be resolved for compatibility tests * This version can be treated as 'minimal guaranteed backwards compatible version' of the module. */ -val testedVersion = "1.7.20-dev-2127" +val testedVersion = "1.8.20-dev-2192" val isSnapshotTest = properties.contains("kgp-idea.snapshot_test") val resolvedTestedVersion = if (isSnapshotTest) properties["defaultSnapshotVersion"].toString() else testedVersion @@ -13,6 +13,7 @@ val resolvedTestedVersion = if (isSnapshotTest) properties["defaultSnapshotVersi repositories { maven(url = "https://maven.pkg.jetbrains.space/kotlin/p/kotlin/bootstrap") + maven(url = "https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-ide-plugin-dependencies") } if (isSnapshotTest) { @@ -36,6 +37,12 @@ dependencies { incomingClasspath(kotlin("gradle-plugin-idea", resolvedTestedVersion)) incomingClasspath(testFixtures(kotlin("gradle-plugin-idea", resolvedTestedVersion))) incomingClasspath(kotlin("gradle-plugin-idea-proto", resolvedTestedVersion)) + + incomingClasspath.resolutionStrategy { + force(kotlin("stdlib", bootstrapKotlinVersion)) + force(kotlin("test-junit", bootstrapKotlinVersion)) + force(kotlin("gradle-plugin-annotations", bootstrapKotlinVersion)) // Remove after this is available under 'testedVersion' + } } val syncClasspath by tasks.register("syncClasspath") {