diff options
author | Ting-Yuan Huang <laszio@google.com> | 2021-10-18 22:33:56 -0700 |
---|---|---|
committer | laszio <ting-yuan@users.noreply.github.com> | 2021-10-25 10:41:53 -0700 |
commit | 9fabadd08819ee9a66997eba5a3bda5faf86963f (patch) | |
tree | df20f6c3132b033e68b34d16ccccc0127e5748df /gradle-plugin | |
parent | 7fa31e0200dff0333607bed1beefd858083b71e3 (diff) | |
download | ksp-9fabadd08819ee9a66997eba5a3bda5faf86963f.tar.gz |
kspKotlinMetadata: setup classpath/etc
Other AbstractKotlinCompile are setup via argument contributors and/or
Configurator.
Diffstat (limited to 'gradle-plugin')
-rw-r--r-- | gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt b/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt index 52a93782..9772ec20 100644 --- a/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt +++ b/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt @@ -704,6 +704,10 @@ abstract class KspTaskMetadata : KotlinCompileCommon(KotlinMultiplatformCommonOp } args.addPluginOptions(options.get()) args.destination = destination.canonicalPath + val classpathList = classpath.files.filter { it.exists() }.toMutableList() + args.classpath = classpathList.joinToString(File.pathSeparator) + args.friendPaths = friendPaths.files.map { it.absolutePath }.toTypedArray() + args.refinesPaths = refinesMetadataPaths.map { it.absolutePath }.toTypedArray() } // Overrding an internal function is hacky. |