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 40d6189 commit eec887dCopy full SHA for eec887d
src/main/kotlin/io/bazel/kotlin/builder/tasks/KotlinBuilder.kt
@@ -292,8 +292,17 @@ class KotlinBuilder
292
argMap.optional(KotlinBuilderFlags.COMPILER_PLUGIN_CLASS_PATH) ?: emptyList(),
293
)
294
295
+ // Kotlin compiler always requires absolute path for source input in incremental mode
296
+ val useAbsolutePath = argMap.optionalSingle(KotlinBuilderFlags.INCREMENTAL_COMPILATION) == "true"
297
argMap
298
.optional(KotlinBuilderFlags.SOURCES)
299
+ ?.map {
300
+ if (useAbsolutePath) {
301
+ FileSystems.getDefault().getPath(it).toAbsolutePath().toString()
302
+ } else {
303
+ it
304
+ }
305
306
?.iterator()
307
?.partitionJvmSources(
308
{ addKotlinSources(it) },
0 commit comments