From 1048f524dd99c9c0b4c25f041174d4a885f6b63f Mon Sep 17 00:00:00 2001 From: Vasilis Nicolaou Date: Sat, 21 Dec 2024 19:07:42 +0200 Subject: [PATCH] Fix 3-linting build --- scalalib/src/mill/javalib/android/AndroidAppModule.scala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scalalib/src/mill/javalib/android/AndroidAppModule.scala b/scalalib/src/mill/javalib/android/AndroidAppModule.scala index 9aa35199ae2..28435ecd019 100644 --- a/scalalib/src/mill/javalib/android/AndroidAppModule.scala +++ b/scalalib/src/mill/javalib/android/AndroidAppModule.scala @@ -459,17 +459,18 @@ trait AndroidAppModule extends JavaModule { val formats = androidLintReportFormat() // Generate the alternating flag and file path strings - val reportArg: Seq[String] = formats.toSeq.flatMap { format => + val reportArg: Seq[String] = formats.flatMap { format => Seq(format.flag, (Task.dest / s"report.${format.extension}").toString) } // Set path to generated `.jar` files and/or `.class` files - val cp = runClasspath().map(_.path).filter(os.exists).mkString(":") + // TODO change to runtimeClasspath once the runtime dependencies + source refs are fixed + val cp = compileClasspath().map(_.path).filter(os.exists).mkString(":") // Set path to the location of the project source codes val src = sources().map(_.path).filter(os.exists).mkString(":") - // Set path to the location of the project ressource codes + // Set path to the location of the project resource code val res = resources().map(_.path).filter(os.exists).mkString(":") // Prepare the lint configuration argument if the config path is set