Skip to content

How to Fix a basic import error? #1650

Answered by lefou
EindbaasExpress asked this question in Q&A
Discussion options

You must be logged in to vote

I'm just quoting your build.sc for context:

// build.sc
import mill._, scalalib._

object GtmAudit extends ScalaModule{
  def scalaVersion = "2.13.7"
  object test extends Tests{
    def ivyDeps = Agg(ivy"com.lihaoyi::utest:0.7.10",
                      ivy"com.google.api-client:google-api-client:1.31.5")
    def testFrameworks = Seq("utest.runner.Framework")
  }
}

You only defined the google library as dependency of the GtmAudit.test module, whereas you also want it to use in GtmAudit module.
You need to move the dependency from the test module to the core module.

// build.sc
import mill._, scalalib._

object GtmAudit extends ScalaModule{
  def scalaVersion = "2.13.7"
  def ivyDeps = Agg(

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@EindbaasExpress
Comment options

Answer selected by EindbaasExpress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants