We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f27b3d9 commit 4111a7fCopy full SHA for 4111a7f
src/main/kotlin/io/bazel/kotlin/builder/tasks/KotlinBuilder.kt
@@ -294,8 +294,17 @@ internal constructor(
294
argMap.optional(KotlinBuilderFlags.COMPILER_PLUGIN_CLASS_PATH) ?: emptyList(),
295
)
296
297
+ // Kotlin compiler always requires absolute path for source input in incremental mode
298
+ val useAbsolutePath = argMap.optionalSingle(KotlinBuilderFlags.INCREMENTAL_COMPILATION) == "true"
299
argMap
300
.optional(KotlinBuilderFlags.SOURCES)
301
+ ?.map {
302
+ if (useAbsolutePath) {
303
+ FileSystems.getDefault().getPath(it).toAbsolutePath().toString()
304
+ } else {
305
+ it
306
+ }
307
308
?.iterator()
309
?.partitionJvmSources(
310
{ addKotlinSources(it) },
0 commit comments