Updating Java mappings only for incremental mode.
Avoiding executing this code on TeamCity, which fails on TeamCity 8.x
This commit is contained in:
@@ -215,6 +215,10 @@ public class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR
|
|||||||
filesToCompile: MultiMap<ModuleBuildTarget, File>,
|
filesToCompile: MultiMap<ModuleBuildTarget, File>,
|
||||||
outputsItemsAndTargets: List<Pair<SimpleOutputItem, ModuleBuildTarget>>
|
outputsItemsAndTargets: List<Pair<SimpleOutputItem, ModuleBuildTarget>>
|
||||||
) {
|
) {
|
||||||
|
if (!IncrementalCompilation.ENABLED) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
val delta = context.getProjectDescriptor().dataManager.getMappings()!!.createDelta()
|
val delta = context.getProjectDescriptor().dataManager.getMappings()!!.createDelta()
|
||||||
val callback = delta!!.getCallback()!!
|
val callback = delta!!.getCallback()!!
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user