All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mill.scalalib.CrossScalaModule.scala Maven / Gradle / Ivy

There is a newer version: 0.12.0-RC2-17-07e173
Show newest version
package mill.scalalib

import mill.api.PathRef
import mill.T

/**
 * A [[ScalaModule]] which is suited to be used with [[mill.define.Cross]].
 * It supports additional source directories with the scala version pattern
 * as suffix (`src-{scalaversionprefix}`), e.g.
 *
 * - src
 * - src-2.11
 * - src-2.12.3
 */
trait CrossScalaModule extends ScalaModule with CrossModuleBase {
  override def sources: T[Seq[PathRef]] = T.sources {
    super.sources() ++
      scalaVersionDirectoryNames.map(s => PathRef(millSourcePath / s"src-$s"))
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy