Skip to content

Commit

Permalink
Support mill.scalalib.JavaModule.zincReportCachedProblems sys prope…
Browse files Browse the repository at this point in the history
…rty (#2775)

Reporting cached problems does not change the compilation result,
hence it should be safe to make it configurable at runtime via a system
property.

Pull request: #2775
  • Loading branch information
lefou authored Sep 21, 2023
1 parent 5124566 commit 8fd18ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scalalib/src/mill/scalalib/JavaModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,12 @@ trait JavaModule
* If `true`, we always show problems (errors, warnings, infos) found in all source files, even when they have not changed since the previous incremental compilation.
* When `false`, we report only problems for files which we re-compiled.
*/
def zincReportCachedProblems: T[Boolean] = T(false)
def zincReportCachedProblems: T[Boolean] = T.input {
sys.props.getOrElse(
"mill.scalalib.JavaModule.zincReportCachedProblems",
"false"
).equalsIgnoreCase("true")
}

/**
* Compiles the current module to generate compiled classfiles/bytecode.
Expand Down

0 comments on commit 8fd18ea

Please sign in to comment.