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:
Yahor Berdnikau
2023-03-10 17:25:59 +01:00
committed by Space Team
parent 6509b0201c
commit dfec9efbb0
11 changed files with 304 additions and 26 deletions
@@ -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)