Skip to content

Commit

Permalink
UPDATE_KOTLIN_VERSION: 1.9.20-dev-6963
Browse files Browse the repository at this point in the history
  • Loading branch information
neetopia authored and ting-yuan committed Sep 11, 2023
1 parent f8fc0a4 commit 348cf16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
import org.jetbrains.kotlin.gradle.plugin.SubpluginArtifact
import org.jetbrains.kotlin.gradle.plugin.SubpluginOption
import org.jetbrains.kotlin.gradle.plugin.getKotlinPluginVersion
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinCommonCompilation
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinJvmAndroidCompilation
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinJvmCompilation
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinWithJavaCompilation
import org.jetbrains.kotlin.gradle.plugin.mpp.*
import org.jetbrains.kotlin.gradle.tasks.*
import org.jetbrains.kotlin.incremental.ChangedFiles
import org.jetbrains.kotlin.incremental.isJavaFile
Expand Down Expand Up @@ -217,6 +214,9 @@ class KspGradleSubplugin @Inject internal constructor(private val registry: Tool
if (kotlinCompileProvider.name == "compileKotlinMetadata") {
return project.provider { emptyList() }
}
if ((kotlinCompilation as? KotlinSharedNativeCompilation)?.platformType == KotlinPlatformType.common) {
return project.provider { emptyList() }
}

val target = kotlinCompilation.target.name
val sourceSetName = kotlinCompilation.defaultSourceSet.name
Expand Down Expand Up @@ -493,7 +493,6 @@ class KspGradleSubplugin @Inject internal constructor(private val registry: Tool
KotlinPlatformType.common -> {
KotlinFactories.registerKotlinMetadataCompileTask(project, kspTaskName, kotlinCompilation).also {
it.configure { kspTask ->
val kotlinCompileTask = kotlinCompileProvider.get() as KotlinCompileCommon
maybeBlockOtherPlugins(kspTask as BaseKotlinCompile)
configureAsKspTask(kspTask, isIncremental)
configureAsAbstractKotlinCompileTool(kspTask as AbstractKotlinCompileTool<*>)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class KMPImplementedIT {
gradleRunner.withArguments(
"--configuration-cache-problems=warn",
"clean",
"build",
":workload:build",
"-Pksp.allow.all.target.configuration=false"
).buildAndFail().apply {
Assert.assertTrue(
Expand All @@ -344,7 +344,7 @@ class KMPImplementedIT {
gradleRunner.withArguments(
"--configuration-cache-problems=warn",
"clean",
"build"
":workload:build",
).build().apply {
Assert.assertTrue(
messages.all {
Expand Down

0 comments on commit 348cf16

Please sign in to comment.