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

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

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

import mill.T

/**
 * A [[JavaModule]] with a Maven compatible directory layout.
 *
 * @see [[SbtModule]] if you need a scala module with Maven layout.
 */
trait MavenModule extends JavaModule { outer =>

  override def sources = T.sources(
    millSourcePath / "src" / "main" / "java"
  )
  override def resources = T.sources {
    millSourcePath / "src" / "main" / "resources"
  }

  type MavenTests = MavenModuleTests
  @deprecated("Use JavaTests instead", since = "Mill 0.11.10")
  trait MavenModuleTests extends JavaModuleTests {
    override def millSourcePath = outer.millSourcePath
    override def intellijModulePath: os.Path = outer.millSourcePath / "src" / "test"

    override def sources = T.sources(
      millSourcePath / "src" / "test" / "java"
    )
    override def resources = T.sources {
      millSourcePath / "src" / "test" / "resources"
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy