diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml
index 99134afb557..1262650d1e4 100644
--- a/gradle/verification-metadata.xml
+++ b/gradle/verification-metadata.xml
@@ -88,6 +88,12 @@
+
+
+
+
+
+
@@ -100,6 +106,12 @@
+
+
+
+
+
+
@@ -186,6 +198,12 @@
+
+
+
+
+
+
@@ -204,6 +222,12 @@
+
+
+
+
+
+
@@ -216,6 +240,12 @@
+
+
+
+
+
+
@@ -228,6 +258,12 @@
+
+
+
+
+
+
@@ -240,6 +276,12 @@
+
+
+
+
+
+
@@ -252,6 +294,12 @@
+
+
+
+
+
+
@@ -276,6 +324,12 @@
+
+
+
+
+
+
@@ -288,6 +342,12 @@
+
+
+
+
+
+
@@ -300,6 +360,12 @@
+
+
+
+
+
+
@@ -312,6 +378,12 @@
+
+
+
+
+
+
@@ -324,6 +396,12 @@
+
+
+
+
+
+
@@ -336,6 +414,12 @@
+
+
+
+
+
+
@@ -348,6 +432,12 @@
+
+
+
+
+
+
@@ -360,6 +450,12 @@
+
+
+
+
+
+
@@ -372,6 +468,12 @@
+
+
+
+
+
+
@@ -390,6 +492,12 @@
+
+
+
+
+
+
@@ -408,6 +516,12 @@
+
+
+
+
+
+
@@ -432,6 +546,12 @@
+
+
+
+
+
+
@@ -456,6 +576,12 @@
+
+
+
+
+
+
@@ -468,12 +594,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -504,6 +642,12 @@
+
+
+
+
+
+
@@ -522,6 +666,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -540,6 +696,12 @@
+
+
+
+
+
+
@@ -556,12 +718,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -574,6 +748,12 @@
+
+
+
+
+
+
@@ -592,6 +772,12 @@
+
+
+
+
+
+
@@ -610,48 +796,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1158,6 +1392,12 @@
+
+
+
+
+
+
@@ -1286,6 +1526,12 @@
+
+
+
+
+
+
@@ -1468,6 +1714,12 @@
+
+
+
+
+
+
@@ -1496,6 +1748,12 @@
+
+
+
+
+
+
@@ -1526,6 +1784,12 @@
+
+
+
+
+
+
@@ -2768,42 +3032,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -3772,6 +4078,12 @@
+
+
+
+
+
+
@@ -3844,6 +4156,12 @@
+
+
+
+
+
+
@@ -3964,6 +4282,12 @@
+
+
+
+
+
+
@@ -5765,6 +6089,12 @@
+
+
+
+
+
+
@@ -5795,6 +6125,12 @@
+
+
+
+
+
+
@@ -6471,6 +6807,12 @@
+
+
+
+
+
+
@@ -9431,6 +9773,12 @@
+
+
+
+
+
+
diff --git a/libraries/tools/kotlin-gradle-plugin/build.gradle.kts b/libraries/tools/kotlin-gradle-plugin/build.gradle.kts
index eea1664d350..d26aca120ee 100644
--- a/libraries/tools/kotlin-gradle-plugin/build.gradle.kts
+++ b/libraries/tools/kotlin-gradle-plugin/build.gradle.kts
@@ -1,5 +1,7 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import com.github.jengelman.gradle.plugins.shadow.transformers.DontIncludeResourceTransformer
+import org.jetbrains.kotlin.gradle.dsl.JvmTarget
+import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.pill.PillExtension
plugins {
@@ -274,6 +276,15 @@ if (!kotlinBuildProperties.isInJpsBuildIdeaSync) {
}
val functionalTestCompilation = kotlin.target.compilations.getByName("functionalTest")
+ functionalTestCompilation.compileJavaTaskProvider.configure {
+ sourceCompatibility = JavaLanguageVersion.of(11).toString()
+ targetCompatibility = JavaLanguageVersion.of(11).toString()
+ }
+ functionalTestCompilation.compileTaskProvider.configure {
+ with(this as KotlinCompile) {
+ kotlinJavaToolchain.toolchain.use(project.getToolchainLauncherFor(JdkMajorVersion.JDK_11_0))
+ }
+ }
functionalTestCompilation.associateWith(kotlin.target.compilations.getByName("main"))
functionalTestCompilation.associateWith(kotlin.target.compilations.getByName("common"))
@@ -316,8 +327,8 @@ if (!kotlinBuildProperties.isInJpsBuildIdeaSync) {
val implementation = project.configurations.getByName(functionalTestSourceSet.implementationConfigurationName)
val compileOnly = project.configurations.getByName(functionalTestSourceSet.compileOnlyConfigurationName)
- implementation("com.android.tools.build:gradle:7.2.1")
- implementation("com.android.tools.build:gradle-api:7.2.1")
+ implementation("com.android.tools.build:gradle:7.4.2")
+ implementation("com.android.tools.build:gradle-api:7.4.2")
compileOnly("com.android.tools:common:30.2.1")
implementation(gradleKotlinDsl())
implementation(project(":kotlin-gradle-plugin-kpm-android"))