Mill build tool: How to declare multiple managed library dependencies

If you ever need to declare one or more managed library dependencies when using the Mill build tool, here’s the syntax for how to do that in your build.sc configuration file:

object RssAtomReader extends ScalaModule {

    def scalaVersion = "2.12.11"

    // `::` for scala deps, `:` for java deps
    def ivyDeps = Agg(
        ivy"org.scala-lang.modules::scala-xml:1.0.6",
        ivy"org.scalaj::scalaj-http:2.3.0",
        ivy"com.rometools:rome:1.8.1",
        ivy"org.jsoup:jsoup:1.11.2",
        ivy"com.typesafe:config:1.4.0",
        ivy"org.slf4j:slf4j-api:1.7.5",
        ivy"org.slf4j:slf4j-simple:1.7.5"
    )

}

As shown in the comments, use :: to separate the first two fields of Scala dependencies, and use : to separate the first two fields of Java dependencies.

If you ever need to declare multiple managed library dependencies in your build.sc configuration file when using Mill, I hope this example is helpful.