KT-49066: Use correct moduleName in the incremental compilation
When storing mapping from moduleName to module information, ensure that values from kotlinOptions DSL objects are taken into consideration. Fixes #KT-49066 Test: KotlinAndroid70GradleIT.testCustomModuleName
This commit is contained in:
committed by
TeamCityServer
parent
472eceb13c
commit
32bf7f33a7
+3
@@ -553,6 +553,9 @@ abstract class KotlinCompile @Inject constructor(
|
||||
compileJavaTaskProvider.map { it.name }
|
||||
)
|
||||
}
|
||||
task.moduleName.set(task.project.provider {
|
||||
task.kotlinOptions.moduleName ?: task.parentKotlinOptionsImpl.orNull?.moduleName ?: compilation.moduleName
|
||||
})
|
||||
|
||||
if (properties.useClasspathSnapshot) {
|
||||
val classpathSnapshot = task.project.configurations.getByName(classpathSnapshotConfigurationName(task.name))
|
||||
|
||||
Reference in New Issue
Block a user