Add JVM project level compiler options DSL
These options are used as initial convention values for compilerOptions in target compilations. ^KT-57159 In Progress
This commit is contained in:
committed by
Space Team
parent
6509b0201c
commit
dfec9efbb0
+2
-1
@@ -472,7 +472,8 @@ open class IncrementalJvmCompilerRunner(
|
||||
isIncremental: Boolean
|
||||
): Services.Builder =
|
||||
super.makeServices(args, lookupTracker, expectActualTracker, caches, dirtySources, isIncremental).apply {
|
||||
val targetId = TargetId(args.moduleName!!, "java-production")
|
||||
val moduleName = requireNotNull(args.moduleName) { "'moduleName' is null!" }
|
||||
val targetId = TargetId(moduleName, "java-production")
|
||||
val targetToCache = mapOf(targetId to caches.platformCache)
|
||||
val incrementalComponents = IncrementalCompilationComponentsImpl(targetToCache)
|
||||
register(IncrementalCompilationComponents::class.java, incrementalComponents)
|
||||
|
||||
Reference in New Issue
Block a user