1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Export the POM generator on the KobaltContext.

This commit is contained in:
Cedric Beust 2016-07-30 16:25:56 -07:00
parent e19201de33
commit e2e8e78be6
2 changed files with 10 additions and 1 deletions

View file

@ -14,6 +14,7 @@ import com.beust.kobalt.internal.PluginInfo
import com.beust.kobalt.internal.build.BuildFile
import com.beust.kobalt.internal.build.VersionFile
import com.beust.kobalt.maven.DependencyManager
import com.beust.kobalt.maven.PomGenerator
import com.beust.kobalt.maven.aether.KobaltAether
import com.beust.kobalt.misc.KFiles
import com.beust.kobalt.misc.KobaltExecutors
@ -35,7 +36,7 @@ public class BuildFileCompiler @Inject constructor(@Assisted("buildFiles") val b
val dependencyManager: DependencyManager, val pluginProperties: PluginProperties,
val executors: KobaltExecutors, val buildScriptUtil: BuildScriptUtil, val settings: KobaltSettings,
val incrementalManagerFactory: IncrementalManager.IFactory, val args: Args,
val aether: KobaltAether) {
val aether: KobaltAether, val pomGeneratorFactory: PomGenerator.IFactory) {
interface IFactory {
fun create(@Assisted("buildFiles") buildFiles: List<BuildFile>, pluginInfo: PluginInfo) : BuildFileCompiler
@ -56,6 +57,7 @@ public class BuildFileCompiler @Inject constructor(@Assisted("buildFiles") val b
context.settings = settings
context.incrementalManager = incrementalManagerFactory.create()
context.aether = aether
context.pomGeneratorFactory = pomGeneratorFactory
Kobalt.context = context
//