-
Hi, we have a multi module sbt build in our git repository. The root directory contains many unrelated files and folders, and we want to separate the directories that contains sources and the directories that contains other stuffs, so we have all of our module sources inside a root folder called With sbt, we could determine the root directory of a module in the buildfile, so a Right now I am struggling to have the Conceptually, it would be nice to have a way to say: if the module's prefix is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
How about this: // file: build.mill
package build
import mill._
import mill.scalalib._
object `package` extends RootModule {
def millSourcePath = super.millSourcePath / "modules"
object foo extends JavaModule
object bar extends JavaModule
}
You can always override |
Beta Was this translation helpful? Give feedback.
How about this:
You can always override
millSourcePath
, if your module materializes in a different location.