com.carrotgarden.maven.scalor.zinc.Resolve.scala Maven / Gradle / Ivy
package com.carrotgarden.maven.scalor.zinc
import com.carrotgarden.maven.tools.Description
import org.apache.maven.plugins.annotations._
import scala.collection.JavaConverters._
import com.carrotgarden.maven.scalor._
/**
* Resolve Scala installation from defined dependencies.
*/
trait Resolve {
self : ParamScalaInstall //
with resolve.Maven with base.Params with base.ParamsCompiler =>
def moduleDetector() : Module.Detector = {
Module.Detector(
regexCompilerBridge,
regexScalaCompiler,
regexScalaLibrary,
// regexScalaReflect,
resourcePluginDescriptor
)
}
/**
* Resolve Scala installation from defined dependencies.
*/
def resolveCustomInstall() : ScalaInstall = {
val detector = moduleDetector()
import base.Params._
val defineRequest = base.Params.DefineRequest(
defineAutoBridge( project ),
defineAutoCompiler( project ),
defineAutoPluginList( project )
)
val defineResponse = resolveDefine( defineRequest, "compile" )
val install = ScalaInstall( zincScalaInstallTitle, detector, defineResponse ).withTitleDigest
install
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy